[issue17852] Built-in module _io can loose data from buffered files at exit

Nikolaus Rath report at bugs.python.org
Thu Dec 4 19:23:49 CET 2014


Nikolaus Rath added the comment:

This will probably be too radial, but I think it should at least be mentioned as a possible option.
 
We could just not attempt to implicitly flush buffers in the finalizer at all. This means scripts relying on this will break, but in contrast to the current behavior they will break consistently so it's easy to find and fix the problem.

I think this is still preferable to any solution that does not guarantee flushing in 100% of the cases.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17852>
_______________________________________


More information about the Python-bugs-list mailing list