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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22996>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to