close has no effect on Mac OSX Python 3.0

resi147 scalet at yebu.de
Tue Dec 9 07:06:03 EST 2008


On 9 Dez., 07:51, "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:
> En Mon, 08 Dec 2008 20:09:23 -0200, resi147 <sca... at yebu.de> escribió:
>
> > I'm wondering if it's really a bug since it's so trivial:
>
> >     fp = open('/etc/services')
> >     ct = fp.read(1048)
> >     print(ct[-80:], end='')
> >     fp.close()
> >     ct = fp.read(17)
> >     print(ct)
>
> > the second read should fail, but happily continues reading the file.
> > Really a bug?
>
> Looks like a real bug to me. In fact it is already reported:http://bugs.python.org/issue4604
>
> --
> Gabriel Genellina


Thanks to Skip Montanaro, he did it (for me, thanks :-)

Karl.



More information about the Python-list mailing list