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 vstinner
Recipients amaury.forgeotdarc, christian.heimes, vstinner
Date 2008-11-01.01:12:19
SpamBayes Score 8.932554e-05
Marked as misclassified No
Message-id <1225501944.02.0.867759198908.issue4233@psf.upfronthosting.co.za>
In-reply-to
Content
@christian: Your patch doesn't work: if close() if called twice, the 
file is really closed :-/

Here is a new patch:
 - _FileIO.close() sets self->fd to -1 but don't show a warning anymore 
because the operation is valid: it does really close the _FileIO object
 - add two tests for two problems: read is now blocked if the file is 
closed, and the warning displayed by FileIO.__del__
History
Date User Action Args
2008-11-01 01:12:24vstinnersetrecipients: + vstinner, amaury.forgeotdarc, christian.heimes
2008-11-01 01:12:24vstinnersetmessageid: <1225501944.02.0.867759198908.issue4233@psf.upfronthosting.co.za>
2008-11-01 01:12:22vstinnerlinkissue4233 messages
2008-11-01 01:12:22vstinnercreate