[issue18283] shutil.which() should support bytes

2019-02-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5680f6546dcda550ad70eefa0a5ebf1375303307 by Victor Stinner (Cheryl Sabella) in branch 'master': bpo-18283: Add support for bytes to shutil.which (GH-11818) https://github.com/python/cpython/commit/5680f6546dcda550ad70eefa0a5ebf1375303307

[issue18283] shutil.which() should support bytes

2019-02-13 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue18283] shutil.which() should support bytes

2019-02-11 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +11840 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18283] shutil.which() should support bytes

2019-02-11 Thread STINNER Victor
STINNER Victor added the comment: > Would it be worthwhile to make a PR of this for 3.8? Yes. Would you be interested to convert my old patch to a fresh PR? I can help you to work on that. -- ___ Python tracker

[issue18283] shutil.which() should support bytes

2019-02-09 Thread Cheryl Sabella
Cheryl Sabella added the comment: Would it be worthwhile to make a PR of this for 3.8? -- nosy: +cheryl.sabella versions: +Python 3.8 -Python 3.5 ___ Python tracker ___

[issue18283] shutil.which() should support bytes

2013-12-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- stage: committed/rejected - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18283 ___

[issue18283] shutil.which() should support bytes

2013-12-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All low-level functions in the os.path module supports string and bytes paths. But not all high-level functions in the shutil module supports bytes paths. Adding support for bytes paths will complicate implementation and tests. -- versions: +Python

[issue18283] shutil.which() should support bytes

2013-12-16 Thread STINNER Victor
STINNER Victor added the comment: Almost all functions of the shutil module support bytes filenames. I tested shutil.copyfile(), shutil.ignore_patterns(), shutil.copytree(), shutil.rmtree() and shutil.move(). I only found one function which only support Unicode filenames:

[issue18283] shutil.which() should support bytes

2013-12-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1a05e2724dd by Victor Stinner in branch 'default': Issue #18283: shutil.which() now supports bytes argument, not only text argument. http://hg.python.org/cpython/rev/a1a05e2724dd -- nosy: +python-dev

[issue18283] shutil.which() should support bytes

2013-12-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18283 ___

[issue18283] shutil.which() should support bytes

2013-12-16 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- stage: - committed/rejected versions: +Python 3.4 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18283

[issue18283] shutil.which() should support bytes

2013-12-16 Thread STINNER Victor
STINNER Victor added the comment: which_bytes.patch does not work on Windows. According to Serhiy, it's a new feature and so should wait for Python 3.5. -- resolution: fixed - status: closed - open versions: +Python 3.5 -Python 3.4 ___ Python

[issue18283] shutil.which() should support bytes

2013-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about bytearrays and other byte-like objects? However I'm not sure this enhancement is worth to be accepted. Many other high-level functions in os and shutil modules do not support bytes paths. For shutil.which() there is no backward compatibility with

[issue18283] shutil.which() should support bytes

2013-06-23 Thread STINNER Victor
STINNER Victor added the comment: What about bytearrays and other byte-like objects? However I'm not sure this enhancement is worth to be accepted. Many other high-level functions in os and shutil modules do not support bytes paths. For shutil.which() there is no backward compatibility with

[issue18283] shutil.which() should support bytes

2013-06-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18283 ___ ___ Python-bugs-list

[issue18283] shutil.which() should support bytes

2013-06-22 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: shutil.which() should support bytes. Some other functions in shutil module support bytes. shutil.which(echo) '/bin/echo'

[issue18283] shutil.which() should support bytes

2013-06-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- type: - enhancement versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18283 ___

[issue18283] shutil.which() should support bytes

2013-06-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18283 ___ ___ Python-bugs-list

[issue18283] shutil.which() should support bytes

2013-06-22 Thread STINNER Victor
STINNER Victor added the comment: Here is an implementation. -- keywords: +patch Added file: http://bugs.python.org/file30674/which_bytes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18283