[New-bugs-announce] [issue22996] Order of _io objects finalization can lose data in reference cycles

Antoine Pitrou report at bugs.python.org
Thu Dec 4 14:50:26 CET 2014


New submission from Antoine Pitrou:

Spun off from issue #17852, which sticks to interpreter shutdown issue. There is a more general issue when e.g. a BufferedWriter can be finalized (tp_finalize) before the TextIOWrapper wrapping it if they belong to a reference chain, losing unflushed data.

Reproducer attached.

----------
components: IO
files: gcio.py
messages: 232138
nosy: pitrou
priority: normal
severity: normal
status: open
title: Order of _io objects finalization can lose data in reference cycles
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file37358/gcio.py

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


More information about the New-bugs-announce mailing list