Author: thomas.wouters
Date: Tue Aug 22 00:15:41 2006
New Revision: 51449
Modified:
python/branches/p3yk/Modules/gcmodule.c
Log:
Fix test_gc failure by fixing the bug test_gc found: __del__ methods were no
longer preventing classes from being cleaned up by the cycle-gc, after Guido
removed references to PyInstance_*.
Modified: python/branches/p3yk/Modules/gcmodule.c
==============================================================================
--- python/branches/p3yk/Modules/gcmodule.c (original)
+++ python/branches/p3yk/Modules/gcmodule.c Tue Aug 22 00:15:41 2006
@@ -411,7 +411,7 @@
if (PyGen_CheckExact(op))
return PyGen_NeedsFinalizing((PyGenObject *)op);
else
- return 0;
+ return op->ob_type->tp_del != NULL;
}
/* Move the objects in unreachable with __del__ methods into `finalizers`.
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins