https://github.com/python/cpython/commit/50c4698c71aa440409e341ec0cbbdb71a00d7993
commit: 50c4698c71aa440409e341ec0cbbdb71a00d7993
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-08-27T15:49:48+03:00
summary:

[3.15] gh-90982: Document prefixes argument on site.getsitepackages (GH-31546) 
(#155643)

Co-authored-by: Addison Snelling <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Serhiy Storchaka <[email protected]>

files:
M Doc/library/site.rst

diff --git a/Doc/library/site.rst b/Doc/library/site.rst
index 11a5484c2b1336..fe8718280b2a01 100644
--- a/Doc/library/site.rst
+++ b/Doc/library/site.rst
@@ -449,12 +449,19 @@ Module contents
       Also processes :file:`.start` files.  See :ref:`site-start-files`.
 
 
-.. function:: getsitepackages()
+.. function:: getsitepackages(prefixes=None)
 
    Return a list containing all global site-packages directories.
 
+   For each directory present in *prefixes* (or :data:`PREFIXES` if *prefixes*
+   is ``None``), this function will find its site-packages subdirectory
+   depending on the system environment, and will return a list of full paths.
+
    .. versionadded:: 3.2
 
+   .. versionchanged:: 3.3
+      Added the optional *prefixes* parameter.
+
 
 .. function:: getuserbase()
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to