[New-bugs-announce] [issue8640] subprocess: add envb argument to Popen constructor (Python3, POSIX only)
STINNER Victor
report at bugs.python.org
Fri May 7 00:45:17 CEST 2010
New submission from STINNER Victor <victor.stinner at haypocalc.com>:
Python 3.2 has now its os.environb, the bytes version of os.environ. subprocess should get a new envb argument to be able to use pure bytes environmental variables. Examples:
subprocess.call([b'env], envb={b'PATH': b'/usr/bin'})
and
envb = os.environb.copy()
envb[b'PATH'] = b'/usr/bin'
subprocess.call([b'env], envb=envb)
Specify both env and envb would raise an exception. envb should only be available on POSIX (as os.environb).
Related issues: #8513 (subprocess: support bytes program name) and #8603 (os.environb).
----------
components: Library (Lib), Unicode
messages: 105168
nosy: haypo
priority: normal
severity: normal
status: open
title: subprocess: add envb argument to Popen constructor (Python3, POSIX only)
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8640>
_______________________________________
More information about the New-bugs-announce
mailing list