https://github.com/python/cpython/commit/97feb4a78bf1ebdec26b685fd509cf57b3333e4a
commit: 97feb4a78bf1ebdec26b685fd509cf57b3333e4a
branch: main
author: Filipe LaĆns <[email protected]>
committer: FFY00 <[email protected]>
date: 2024-05-02T00:13:32+01:00
summary:
GH-118174: specify the type for the path argument of shutil.which
files:
M Doc/library/shutil.rst
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index 8e5828c789e4e2..542d2886477792 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -449,8 +449,9 @@ Directory and files operations
*mode* is a permission mask passed to :func:`os.access`, by default
determining if the file exists and executable.
- When no *path* is specified, the results of :func:`os.environ` are used,
- returning either the "PATH" value or a fallback of :data:`os.defpath`.
+ *path* is a "``PATH`` string" specifying the lookup directory list. When no
+ *path* is specified, the results of :func:`os.environ` are used, returning
+ either the "PATH" value or a fallback of :data:`os.defpath`.
On Windows, the current directory is prepended to the *path* if *mode* does
not include ``os.X_OK``. When the *mode* does include ``os.X_OK``, the
_______________________________________________
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]