[Patches] [Patch #101595] ob_type in deallocator function

noreply@sourceforge.net noreply@sourceforge.net
Thu, 21 Sep 2000 09:14:36 -0700


Patch #101595 has been updated. 

Project: 
Category: core (C code)
Status: Open
Summary: ob_type in deallocator function 

Follow-Ups:

Date: 2000-Sep-21 09:14
By: gvanrossum

Comment:
Hmm, he may be right. I think that setting the ob_type pointer to zero before calling the dealloc function (which only happens in Py_DEBUG mode) is indeed a bug! For example, deallocating a class instance with a __del__ destructor that revives the object would be a disaster, since the revived object would not have a type any more.

Given to Neil, who can judge why this was done, and may check in a fix if he agrees.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101595&group_id=5470