https://github.com/python/cpython/commit/ee4bd4a54a4b10efe3792834ed6887be81075fad commit: ee4bd4a54a4b10efe3792834ed6887be81075fad branch: main author: Stan Ulbrych <[email protected]> committer: StanFromIreland <[email protected]> date: 2026-08-30T12:00:03+01:00 summary:
gh-156517: Clarify that `site.getsitepackages()` doesn't check for existance (#156524) 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]
