Kristján Valur Jónsson <krist...@ccpgames.com> added the comment:

Here is a patch with the suggested change.
I put _PyObject_ResurrectFromDealloc into typeobject.c since it seems more at 
home there than in object.c, but I'm not sure.
Also note that other types, that were calling _PyIOBase_finalize() from their 
tp_dealloc slots (bufferedio, fileio) will now also get the correct behavior 
with the incref'd ob_type slot, if the object is resurrected.

----------
Added file: http://bugs.python.org/file25247/resurrect.patch

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

Reply via email to