[Python-Dev] GC and ExtensionClass - a summary of the problem and a workaround
skip@pobox.com (Skip Montanaro)
skip@pobox.com (Skip Montanaro)
Thu, 17 May 2001 02:07:15 -0500
Fredrik> footnote: this is usually done in the module init function,
Fredrik> *before* the call to Py_InitModule. see:
Fredrik> http://www.python.org/doc/FAQ.html#3.24
Fredrik> if the garbage collector can run after Python calls a module's
Fredrik> init- function, but before that module calls back into Python,
Fredrik> anything can happen...
Thanks for pointing that out. Py_InitModule is indeed called before the
fixup occurs.
Skip