[issue15148] shutil.which() docstring could be clearer

2012-11-02 Thread R. David Murray
R. David Murray added the comment: Doesn't look like it. -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue15148] shutil.which() docstring could be clearer

2012-11-02 Thread Hynek Schlawack
Hynek Schlawack added the comment: Any reason why this is still open? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue15148] shutil.which() docstring could be clearer

2012-06-29 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f18d9d34f73 by Brian Curtin in branch 'default': Fix #15148. Make the shutil.which docstring more thorough http://hg.python.org/cpython/rev/5f18d9d34f73 New changeset aa153b827d17 by Brian Curtin in branch 'default': Fix #15148. Capitalize PATH, h

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread R. David Murray
R. David Murray added the comment: Yeah, Brian had it as 'file' before, and I asked him to change it because it is confusing. 'file' sounds like a Python file object, which this is not. 'filename' would be OK, but 'cmd', as you note, is what it is really about. One possibility for the path

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread Brian Curtin
Brian Curtin added the comment: No, reverting. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Brian, Did you intend to commit Tools/msi/msi.py in changeset 973b4806f760? -- ___ Python tracker ___ __

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Alexander, can you explain the part about finding a file on PYTHONPATH? I thought about something like this: >>> shutil.which('shutil.py', os.F_OK, ':'.join(sys.path)) '/Users/sasha/Work/python-hg/py3k/Lib/shutil.py' but win32 code seems to assume a s

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread Brian Curtin
Brian Curtin added the comment: I updated file to command in 973b4806f760. It needs to be command so it matches the implementation's argument name, and because it doesn't exactly take a file. Alexander, can you explain the part about finding a file on PYTHONPATH? I don't think this has anythi

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: *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

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5975292ddf82 by Alexander Belopolsky in branch 'default': Issue #15148: Fixed typos in shutil.which() docstring http://hg.python.org/cpython/rev/5975292ddf82 -- nosy: +python-dev ___ Python tracker

[issue15148] shutil.which() docstring could be clearer

2012-06-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- title: shutul.which() docstring could be clearer -> shutil.which() docstring could be clearer ___ Python tracker ___ ___