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 bquinlan
Recipients bquinlan
Date 2009-04-05.15:35:53
SpamBayes Score 0.0016607028
Marked as misclassified No
Message-id <1238945758.46.0.01809197792.issue5700@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import io
>>> class MyIO(io.FileIO):
...     def flush(self):
...             print('closed:', self.closed)
...
>>> f = MyIO('test.out', 'wb')
>>> f.close()
closed: True

IMHO, calling flush() after the file has already been closed is
incorrect behaviour. Search for "Possible py3k io wierdness" on
python-dev for discussion.
History
Date User Action Args
2009-04-05 15:35:58bquinlansetrecipients: + bquinlan
2009-04-05 15:35:58bquinlansetmessageid: <1238945758.46.0.01809197792.issue5700@psf.upfronthosting.co.za>
2009-04-05 15:35:55bquinlanlinkissue5700 messages
2009-04-05 15:35:55bquinlancreate