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

Nikolaus Rath report at bugs.python.org
Fri Dec 15 15:16:28 EST 2017


Nikolaus Rath <Nikolaus at rath.org> added the comment:

Given the apparent difficulties getting this right, how about not attempting 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.

----------

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


More information about the Python-bugs-list mailing list