Antoine Pitrou <pit...@free.fr> added the comment:

It seems wrong to call PyObject_ClearWeakRefs() in stringio_clear().
Weakrefs should only be notified when the object is deallocated, not
cleared.
Besides, you should add a test for this, so that the leak can be spotted
with regrtest -R.

----------
nosy: +pitrou

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

Reply via email to