Alexandre Vassalotti <alexan...@peadrop.com> added the comment: Here's an updated patch. The new patch also cleans up tp_clear, tp_traverse and tp_dealloc of io.BytesIO which used weakreflist incorrectly.
I also added support for test_memoryio for adding reference leak regression tests. As you'll see, the support is a bit heavyweight for the only test case there. So perhaps I could change this to something simpler. ---------- Added file: http://bugs.python.org/file14242/fix_refleak_stringio-2.diff _______________________________________ 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