[issue8640] subprocess: add envb argument to Popen constructor (Python3, POSIX only)

2010-05-14 Thread STINNER Victor
STINNER Victor added the comment: > Why wouldn't you give byte variables in env too? The problem with the canonicalization to bytes is to choice of the preferred type. Eg. env={'PATH': 'a', b'PATH': b'b'}: should we use 'a', 'b' or raise an error? subprocess does already convert environ keys

[issue8640] subprocess: add envb argument to Popen constructor (Python3, POSIX only)

2010-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why wouldn't you give byte variables in env too? -- nosy: +pitrou ___ Python tracker ___ ___ Python-

[issue8640] subprocess: add envb argument to Popen constructor (Python3, POSIX only)

2010-05-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8640] subprocess: add envb argument to Popen constructor (Python3, POSIX only)

2010-05-06 Thread STINNER Victor
New submission from STINNER Victor : 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.enviro