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

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

(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 19c2257031a6ee..bd60e4f0d4c645 100644
--- a/Doc/library/site.rst
+++ b/Doc/library/site.rst
@@ -245,9 +245,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