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 Jim.Jewett, amaury.forgeotdarc, asvetlov, dstanek, kristjan.jonsson, loewis, pitrou, rhettinger, stutzbach, tim.peters
Date 2012-04-17.10:58:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334660283.07.0.773951515617.issue9141@psf.upfronthosting.co.za>
In-reply-to
Content
>I don't believe it. I don't see what's magical about being called by the
>gc. Again, a Py_DECREF in tp_dealloc can invoke arbitrary Python code.

Look again.  gcmodule specifically takes any objects reachable from ob_clear and sees if any of them have side effects when Py_DECREF'd.  If any object has a finalizer, the entire cycle is put in gc.garbage.

gcmodule is trickier than you might think.  I've spent quite a time with it.

Anyway, I've put the issue to python-dev, let's see if they have some autorative insight on the matter.
History
Date User Action Args
2012-04-17 10:58:03kristjan.jonssonsetrecipients: + kristjan.jonsson, tim.peters, loewis, rhettinger, amaury.forgeotdarc, pitrou, dstanek, stutzbach, asvetlov, Jim.Jewett
2012-04-17 10:58:03kristjan.jonssonsetmessageid: <1334660283.07.0.773951515617.issue9141@psf.upfronthosting.co.za>
2012-04-17 10:58:02kristjan.jonssonlinkissue9141 messages
2012-04-17 10:58:02kristjan.jonssoncreate