Message158542
>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. |
|
Date |
User |
Action |
Args |
2012-04-17 10:58:03 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, tim.peters, loewis, rhettinger, amaury.forgeotdarc, pitrou, dstanek, stutzbach, asvetlov, Jim.Jewett |
2012-04-17 10:58:03 | kristjan.jonsson | set | messageid: <1334660283.07.0.773951515617.issue9141@psf.upfronthosting.co.za> |
2012-04-17 10:58:02 | kristjan.jonsson | link | issue9141 messages |
2012-04-17 10:58:02 | kristjan.jonsson | create | |
|