[RELEASED] Python 3.1 final

"Martin v. Löwis" martin at v.loewis.de
Sun Jun 28 08:36:37 EDT 2009

> That's a significant improvement. It still decodes os.environ and sys.argv
> before you have a chance to call sys.setfilesystemencoding(), but it
> appears to be recoverable (with some effort; I can't find any way to re-do
> the encoding without manually replacing the surrogates).

See PEP 383.

> However, sys.std{in,out,err} are still created as text streams, and AFAICT
> there's nothing you can do about this from within your code.

That's intentional, and not going to change. You can access the
underlying byte streams if you want to, as you could already in 3.0.


P.S. Please identify yourself on this newsgroup.

More information about the Python-list mailing list