[issue4035] Support bytes for os.exec*()
STINNER Victor
report at bugs.python.org
Sat Oct 4 13:31:28 CEST 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
The fix can be changed to be specific to POSIX system:
+ if name == 'posix' \
+ and isinstance(file, bytes):
+ encoding = sys.getfilesystemencoding()
+ PATH = (bytes(dir, encoding) for dir in PATH)
My example was incorrect. The good example is:
python -c "import os; os.execvp('pwd', ['pwd'])
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4035>
_______________________________________
More information about the Python-bugs-list
mailing list