-
-
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?
Conversation
| 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 comment
The reason will be displayed to describe this comment to others. Learn more.
| is None), this function will find its :file:`site-packages` subdirectory | |
| is ``None``), this function will find its :file:`site-packages` subdirectory |
| @@ -0,0 +1 @@ | |||
| document prefixes argument on site.getsitepackages | |||
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.
As it's a doc change I'd say you can remove this file
Actually, since it documents a new parameter it might be useful to have the news.
| document prefixes argument on site.getsitepackages | |
| Document prefixes argument for :func:`~site.getsitepackages`. |
|
@asnelling Would you still be interested in giving the PR a quick update? |
| .. function:: getsitepackages(prefixes=None) | ||
|
|
||
| Return a list containing all global site-packages directories. | ||
| Return a list containing all global :file:`site-packages` directories. |
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.
| Return a list containing all global :file:`site-packages` directories. | |
| Return a list containing all global site-packages directories. |
This should be reverted, it does not do what you think it does.
| 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 comment
The reason will be displayed to describe this comment to others. Learn more.
| is None), this function will find its :file:`site-packages` subdirectory | |
| is None), this function will find its site-packages subdirectory |
Adding
prefixesargument from code below to site.getsitepackages docs.cpython/Lib/site.py
Lines 346 to 352 in 7fce106
Introduced in commit 7ded1f0
https://bugs.python.org/issue46826