[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed

Serhiy Storchaka report at bugs.python.org
Thu Mar 24 10:45:45 EDT 2016


Serhiy Storchaka added the comment:

I don't like _dealloc_warn() at all. It looks as a dirty hack and doesn't work with custom file-like objects.

I think we should use one of Martin's option. If there are any issues with garbage collecting, we should fix the garbage collector.

----------
versions: +Python 3.5, Python 3.6 -Python 3.3, Python 3.4

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


More information about the Python-bugs-list mailing list