Message85521
>>> 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. |
|
Date |
User |
Action |
Args |
2009-04-05 15:35:58 | bquinlan | set | recipients:
+ bquinlan |
2009-04-05 15:35:58 | bquinlan | set | messageid: <1238945758.46.0.01809197792.issue5700@psf.upfronthosting.co.za> |
2009-04-05 15:35:55 | bquinlan | link | issue5700 messages |
2009-04-05 15:35:55 | bquinlan | create | |
|