Message229143
Yet one related bug is that flush() isn't called at all if the file was opened with closefd=False.
>>> import io, os
>>> class MyIO(io.FileIO):
... def flush(self):
... print('closed:', self.closed)
...
>>> fd = os.open('test.out', os.O_WRONLY|os.O_CREAT)
>>> f = MyIO(fd, 'wb', closefd=False)
>>> f.close()
The proposed simple patch fixes both bugs. |
|
Date |
User |
Action |
Args |
2014-10-12 13:55:15 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, bquinlan, pitrou |
2014-10-12 13:55:15 | serhiy.storchaka | set | messageid: <1413122115.52.0.65064623459.issue5700@psf.upfronthosting.co.za> |
2014-10-12 13:55:15 | serhiy.storchaka | link | issue5700 messages |
2014-10-12 13:55:15 | serhiy.storchaka | create | |
|