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

Armin Rigo report at bugs.python.org
Thu Dec 4 11:39:39 CET 2014


Armin Rigo added the comment:

To add to the confusion: Antoine's example produces an empty file on the current trunk cd282dd0cfe8.  When I first tried it on a slightly older trunk (157 changesets ago), it correctly emitted a file with "barXXX ", but only if "gc.collect()" was present.  Without "gc.collect()" it didn't.  This seems at odds with the explanation that "gc.collect()" should be what occurs at shut-down now.

----------

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


More information about the Python-bugs-list mailing list