[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args
Serhiy Storchaka
report at bugs.python.org
Tue Nov 27 02:40:06 EST 2018
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Gregory, could you please make a look at PR 5914?
Differences from PR 4329:
* Any item of args can be an iterable of bytes and path-like objects on Windows (not just a first item as in PR 4329).
* Accepts bytes and path-like objects as executable on Windows.
* Accepts bytes as cwd on Windows.
* Raises a TypeError when shell is true and args is a path-like object (or bytes on Windows).
* Does not use raising and catching a TypeError when args is an iterable on Windows or a path-like object on POSIX (this makes the code clearer and a tiny bit more efficient).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31961>
_______________________________________
More information about the Python-bugs-list
mailing list