This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ack
Recipients ack
Date 2010-09-03.17:36:29
SpamBayes Score 4.2909565e-12
Marked as misclassified No
Message-id <1283535391.41.0.374921176114.issue9759@psf.upfronthosting.co.za>
In-reply-to
Content
>>> f = open("test2.gz")
>>> d = f.read()
>>> f.close()
>>> e = f.read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: I/O operation on closed file
import gzip
>>> f = gzip.open("test2.gz")
>>> d = f.read()
>>> f.close()
>>> e = f.read()
>>> e
''

To remain consistent with other file(-like) objects, I think 'GzipFile's should also raise a ValueError in cases like this.
History
Date User Action Args
2010-09-03 17:36:31acksetrecipients: + ack
2010-09-03 17:36:31acksetmessageid: <1283535391.41.0.374921176114.issue9759@psf.upfronthosting.co.za>
2010-09-03 17:36:30acklinkissue9759 messages
2010-09-03 17:36:29ackcreate