This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, brian.curtin, docs@python, hynek, python-dev, tarek, tshepang
Date 2012-06-23.02:09:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340417387.28.0.761814311688.issue15148@psf.upfronthosting.co.za>
In-reply-to
Content
*file* is correct because shutil.which() is more general than shell which command.  (It can be used to find source files on PYTHONPATH, for example.)

I think the confusing part is "return the path ... on the path."  This can be fixed in reST by marking the second "path" as the argument, but the docstring should be rephrased.  Note that reST documentation for shutil.which() is missing in Doc/library/shutil.rst.
History
Date User Action Args
2012-06-23 02:09:47belopolskysetrecipients: + belopolsky, tarek, brian.curtin, docs@python, tshepang, python-dev, hynek
2012-06-23 02:09:47belopolskysetmessageid: <1340417387.28.0.761814311688.issue15148@psf.upfronthosting.co.za>
2012-06-23 02:09:46belopolskylinkissue15148 messages
2012-06-23 02:09:46belopolskycreate