-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
bpo-46826: document prefixes argument on site.getsitepackages #31546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -211,12 +211,19 @@ Module contents | |||||||||
| used in :mod:`sitecustomize` or :mod:`usercustomize` (see above). | ||||||||||
|
|
||||||||||
|
|
||||||||||
| .. function:: getsitepackages() | ||||||||||
| .. function:: getsitepackages(prefixes=None) | ||||||||||
|
|
||||||||||
| Return a list containing all global site-packages directories. | ||||||||||
| Return a list containing all global :file:`site-packages` directories. | ||||||||||
|
|
||||||||||
| For each directory present in *prefixes* (or :data:`PREFIXES` if *prefixes* | ||||||||||
| is None), this function will find its :file:`site-packages` subdirectory | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| depending on the system environment, and will return a list of full paths. | ||||||||||
|
|
||||||||||
| .. versionadded:: 3.2 | ||||||||||
|
|
||||||||||
| .. versionchanged:: 3.3 | ||||||||||
| Add the optional *prefixes* argument. | ||||||||||
|
|
||||||||||
|
|
||||||||||
| .. function:: getuserbase() | ||||||||||
|
|
||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1 @@ | ||||||
| document prefixes argument on site.getsitepackages | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Actually, since it documents a new parameter it might be useful to have the news.
Suggested change
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be reverted, it does not do what you think it does.