Antoine Pitrou added the comment:

> The last code snipped verifies, that we only dereference the type if
> the dealloc function is not being called from inside the
> subtype_dealloc function. This is necessary because the
> subtype_dealloc function itself contains a decref of the respective
> type object. Without this check, we would then end up decrefing the
> type too many times.

I still don't understand why it is required. You shouldn't have to
decref the type at all. Otherwise, it is a bug somewhere in Python
(typeobject.c perhaps).

----------

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

Reply via email to