Nice "bug" to loose a contest

Gabriel Genellina gagsl-py2 at
Mon Apr 9 14:47:28 CEST 2007

En Mon, 09 Apr 2007 09:19:16 -0300, <azi.stdout at> escribió:

> Yeah, I've noticed that too, altough I'm clueless on how stdio handles
> that differently. Now I'm wondering, what's the behaviour of the
> Python snippet that reads from stdout in Windows.. Can someone on
> Windows try it and report please?

It does the right thing:

py> print sys.stdout.readlines()
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
IOError: [Errno 9] Bad file descriptor

Gabriel Genellina

More information about the Python-list mailing list