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 martin.panter
Recipients bquinlan, martin.panter, pitrou, serhiy.storchaka, terry.reedy
Date 2015-02-15.22:38:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424039907.6.0.133356356946.issue5700@psf.upfronthosting.co.za>
In-reply-to
Content
For the record, the python-dev thread referenced in the original post is <https://mail.python.org/pipermail/python-dev/2009-April/088212.html>.

The obvious fix to me is to have FileIO.close() call IOBase.close() to invoke the flush() before continuing with its own closing. This is what Serhiy’s patches appear to do, so I agree with them in general.

I do wonder what the point of duplicating test code in test_io and test_fileio is. The only difference seems to be calling open() versus calling FileIO() directly. Wouldn’t it be better to merge the code together, or maybe just assert open() returns a FileIO instance?
History
Date User Action Args
2015-02-15 22:38:27martin.pantersetrecipients: + martin.panter, terry.reedy, bquinlan, pitrou, serhiy.storchaka
2015-02-15 22:38:27martin.pantersetmessageid: <1424039907.6.0.133356356946.issue5700@psf.upfronthosting.co.za>
2015-02-15 22:38:27martin.panterlinkissue5700 messages
2015-02-15 22:38:27martin.pantercreate