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 pitrou
Recipients benjamin.peterson, hagen, pitrou, vstinner
Date 2008-12-27.00:46:09
SpamBayes Score 2.371321e-05
Marked as misclassified No
Message-id <1230338767.31901.15.camel@localhost>
In-reply-to <1230335114.05.0.823259373091.issue3860@psf.upfronthosting.co.za>
Content
> (1) the IOError message is different for the two modules:
>    "I/O operation on closed GzipFile object"
> vs
>    "I/O operation on closed file"

I've reused the same error message as used in other parts of each
module.

> (2) For bz2module, Why don't you call BZ2File_close() directly instead 
> of the generic version PyObject_CallMethod(... "close" ...)?

Because someone may subclass BZ2File and override the close() method. I
don't know if it's likely to happen, though.
History
Date User Action Args
2008-12-27 00:46:10pitrousetrecipients: + pitrou, vstinner, benjamin.peterson, hagen
2008-12-27 00:46:09pitroulinkissue3860 messages
2008-12-27 00:46:09pitroucreate