[RELEASED] Python 3.1 final

Piet van Oostrum piet at cs.uu.nl
Sun Jun 28 12:09:47 EDT 2009


>>>>> Paul Moore <p.f.moore at gmail.com> (PM) wrote:

>PM> 2009/6/28 "Martin v. Löwis" <martin at v.loewis.de>:
>>>> 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.

>PM> I had a quick look at the documentation, and couldn't see how to do
>PM> this. It's the first time I'd read the new IO module documentation, so
>PM> I probably missed something obvious. Could you explain how I get the
>PM> byte stream underlying sys.stdin? (That should give me enough to find
>PM> what I was misunderstanding in the docs).

http://docs.python.org/3.1/library/sys.html#sys.stdin
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list