Nice "bug" to loose a contest

azi.stdout at gmail.com azi.stdout at gmail.com
Mon Apr 9 10:09:46 EDT 2007


On Apr 9, 2:47 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:
> En Mon, 09 Apr 2007 09:19:16 -0300, <azi.std... at gmail.com> 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

I'm wondering if this could be treated as a bug of some kind? I always
thought that the purpose of "higher" interpreted languages is to hide
the implementation details as much as possible, offering a
unique,equal and transparent environment on all systems (as much as
this is possible).




More information about the Python-list mailing list