Message 78319 - Python tracker (original) (raw)
Message78319
Author | vstinner |
---|---|
Recipients | benjamin.peterson, hagen, pitrou, vstinner |
Date | 2008-12-26.23:45:13 |
SpamBayes Score | 6.794745e-06 |
Marked as misclassified | No |
Message-id | 1230335114.05.0.823259373091.issue3860@psf.upfronthosting.co.za |
In-reply-to |
Content |
---|
I love "with ... as f:" and I want it for gzip/bz2 files! Comment about the patch: (1) the IOError message is different for the two modules: "I/O operation on closed GzipFile object" vs "I/O operation on closed file" Specify the object name in both messages or remove it from both messages. I prefer verbose error message ("I/O operation on closed BZ2File object"). (2) For bz2module, Why don't you call BZ2File_close() directly instead of the generic version PyObject_CallMethod(... "close" ...)? |
History | |||
---|---|---|---|
Date | User | Action | Args |
2008-12-26 23:45:14 | vstinner | set | recipients: + vstinner, pitrou, benjamin.peterson, hagen |
2008-12-26 23:45:14 | vstinner | set | messageid: 1230335114.05.0.823259373091.issue3860@psf.upfronthosting.co.za |
2008-12-26 23:45:13 | vstinner | link | issue3860 messages |
2008-12-26 23:45:13 | vstinner | create |