https://github.com/python/cpython/commit/a3ad2258627cb4d8b3494b9a5a2b2aabff480b49
commit: a3ad2258627cb4d8b3494b9a5a2b2aabff480b49
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-08-30T14:19:29+03:00
summary:

[3.15] gh-156517: Clarify that `site.getsitepackages()` doesn't check for 
existance (GH-156524) (#156648)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Barry Warsaw <[email protected]>

files:
M Doc/library/site.rst

diff --git a/Doc/library/site.rst b/Doc/library/site.rst
index fe8718280b2a01..090c4ef3ba03fc 100644
--- a/Doc/library/site.rst
+++ b/Doc/library/site.rst
@@ -453,9 +453,10 @@ Module contents
 
    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.
+   For each directory given in *prefixes* (or :data:`PREFIXES` if *prefixes*
+   is ``None``), this function will compute its site-packages subdirectory
+   depending on the system environment, and will return a list of full paths,
+   which are not checked for existence.
 
    .. versionadded:: 3.2
 

_______________________________________________
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