https://github.com/python/cpython/commit/fcb477624868331160d81b88ecc67ca278649b23
commit: fcb477624868331160d81b88ecc67ca278649b23
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-08-30T11:07:04Z
summary:

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

(cherry picked from commit ee4bd4a54a4b10efe3792834ed6887be81075fad)

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 d49dee2876d87d..ef1961a16cfd40 100644
--- a/Doc/library/site.rst
+++ b/Doc/library/site.rst
@@ -237,9 +237,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