[New-bugs-announce] [issue5700] io.FileIO calls flush() after file closed
Brian Quinlan
report at bugs.python.org
Sun Apr 5 17:35:58 CEST 2009
New submission from Brian Quinlan <brian at sweetapp.com>:
>>> 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.
----------
components: Library (Lib)
files: remove_flush.diff
keywords: patch
messages: 85521
nosy: bquinlan
severity: normal
status: open
title: io.FileIO calls flush() after file closed
versions: Python 3.1
Added file: http://bugs.python.org/file13620/remove_flush.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5700>
_______________________________________
More information about the New-bugs-announce
mailing list