-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
gh-132971: update shutil.which
doc
#133067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
shutil.which
doc
Doc/library/shutil.rst
Outdated
If *cmd* contains a directory component, *which* will only check the specified path directly | ||
and will not search the directories listed in *path* or in the system's ``PATH`` environment variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If *cmd* contains a directory component, *which* will only check the specified path directly | |
and will not search the directories listed in *path* or in the system's ``PATH`` environment variable. | |
If *cmd* contains a directory component, :func:`!which` only checks the | |
specified path directly and does not search the directories listed in *path* | |
or in the system's ``PATH`` environment variable. |
Can we put this one after path is being documented? and make it under a .. note::
directive please? TiA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have done it in the latest commit.
7fe9355
to
1bc4251
Compare
Doc/library/shutil.rst
Outdated
|
||
If *cmd* contains a directory component, :func:`!which` only checks the | ||
specified path directly and does not search the directories listed in *path* | ||
or in the system's ``PATH`` environment variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or in the system's ``PATH`` environment variable. | |
or in the system's :envvar:`PATH` environment variable. |
Why not use a directive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we documenting it somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have corrected it.Thanks.
1bc4251
to
df20e17
Compare
Hello! This is my first contribution to Python. If there’s anything incorrect, please forgive me.
📚 Documentation preview 📚: https://cpython-previews--133067.org.readthedocs.build/