This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients benjamin.peterson, kristjan.jonsson, pitrou
Date 2012-04-15.12:31:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334493069.87.0.200450487444.issue8212@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch that rectifies this situation, albeit in a somewhat 'hacky' manner.
It works by injecting a monitoring 'tp_free' call into the type during the basedealloc call, which sets a flag if it was called with the object, i.e. if actual deletion took place.
This value is then returned, and a decision to decref the object's "type" is made on this result.
History
Date User Action Args
2012-04-15 12:31:09kristjan.jonssonsetrecipients: + kristjan.jonsson, pitrou, benjamin.peterson
2012-04-15 12:31:09kristjan.jonssonsetmessageid: <1334493069.87.0.200450487444.issue8212@psf.upfronthosting.co.za>
2012-04-15 12:31:09kristjan.jonssonlinkissue8212 messages
2012-04-15 12:31:09kristjan.jonssoncreate