Message158542
| 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. |
|