STINNER Victor added the comment:

> For io.BytesIO, I fixed the code to inherit correctly IOBase finalizer.

Oh, I forgot to include it in my patch. But it's maybe better to have it in a 
different patch: see attached bytesio_stringio.patch which changes also 
io.StringIO to inherit the IOBase finalizer.

Emitting a ResourceWarning in io.BytesIO and io.StringIO adds a *lot* of 
warnings when running the Python test suite. Since these objects only contain 
memory, no very limited resource like file descriptors, it's probably better to 
*not* log ResourceWarning for them.

----------
Added file: http://bugs.python.org/file42292/bytesio_stringio.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19829>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to