Author vstinner
Recipients Arfrever, pitrou, vstinner
Date 2010-05-14.10:28:28
SpamBayes Score 0.00479582
Marked as misclassified No
Message-id <1273832910.31.0.208646290701.issue8640@psf.upfronthosting.co.za>
In-reply-to
Content
> 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 and values to bytes on Unix (in subprocess._execute_child() if _posixsubprocess module is present, and in posix_execve()).

os.get_exec_path() should also support b'PATH' key.
History
Date User Action Args
2010-05-14 10:28:30vstinnersetrecipients: + vstinner, pitrou, Arfrever
2010-05-14 10:28:30vstinnersetmessageid: <1273832910.31.0.208646290701.issue8640@psf.upfronthosting.co.za>
2010-05-14 10:28:28vstinnerlinkissue8640 messages
2010-05-14 10:28:28vstinnercreate