gh-90982: document prefixes argument on site.getsitepackages - #31546
Conversation
| @@ -0,0 +1 @@ | |||
| document prefixes argument on site.getsitepackages | |||
There was a problem hiding this comment.
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? |
| 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.
| is None), this function will find its :file:`site-packages` subdirectory | |
| is None), this function will find its site-packages subdirectory |
|
This PR is stale because it has been open for 30 days with no activity. |
Documentation build overview
|
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Stan Ulbrych <stan@python.org>
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Applied suggestions, removed NEWS, fixed other errors. LGTM now.
|
Thanks @asnelling for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-155643 is a backport of this pull request to the 3.15 branch. |
|
GH-155644 is a backport of this pull request to the 3.14 branch. |
|
GH-155645 is a backport of this pull request to the 3.13 branch. |
| .. versionadded:: 3.2 | ||
|
|
||
| .. versionchanged:: 3.3 | ||
| Add the optional *prefixes* argument. |
There was a problem hiding this comment.
| Add the optional *prefixes* argument. | |
| Add the optional *prefixes* parameter. |
Little too late.
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