close has no effect on Mac OSX Python 3.0

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Dec 9 01:51:14 EST 2008


En Mon, 08 Dec 2008 20:09:23 -0200, resi147 <scalet 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




More information about the Python-list mailing list