[issue8603] Create a bytes version of os.environ and getenvb()

STINNER Victor report at bugs.python.org
Tue May 4 00:51:47 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> I also worry that people won't get it right any better than Python (...)

Developers coming from Python2 will continue to use os.getenv() and will not worry about encoding, and maybe not notice that the result is now unicode (and not more a byte string).

I think that a developer will only switch to os.getenvb() if he/she has troubles with the encodings.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8603>
_______________________________________


More information about the Python-bugs-list mailing list