bugs in `gc.get_referents()'

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Nov 27 11:36:06 CET 2001


> > Again, this might go away with the patch. get_referents isn't supposed
> > to trigger a garbage collection.
> 
> All those PyList_Appends might, though.

How could that happen? PyList_Append calls ins1, which calls (through
NRESIZE) PyMem_RESIZE, which is realloc. Apart from that, and apart
from the error cases (which lead to immediate abortion of
get_referrers), it only does INCREFs.

Regards,
Martin





More information about the Python-list mailing list