[Python-Dev] Re: weakref callback vs gc vs threads

Tim Peters tim.peters at gmail.com
Fri Oct 29 20:36:20 CEST 2004


[Tim]
...
> The most sensitive tests for this stuff are test_gc (with the diffs from
> my patch on SF), test_weakref, and test_descr.

BTW, use a debug build of Python.  Some of the relevant tests set up
scenarios so excruciatingly delicate that the only reliable symptom
when they fail is triggering a C-level assert (whatever->mro != NULL
is most common).  In a release build, failure may or may not be
visible (it usually is, but sometimes an insane object can hide its
insanity temporarily in platform-specific ways).


More information about the Python-Dev mailing list