[issue6242] Fix reference leak in io.StringIO
Antoine Pitrou
report at bugs.python.org
Mon Jun 8 22:10:45 CEST 2009
Antoine Pitrou <pitrou at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6242>
_______________________________________
More information about the Python-bugs-list
mailing list