[Pyrex] Tricky bug while unloading modules

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Nov 17 01:55:25 CET 2007


Gustavo Sverzut Barbieri wrote:
> we have a call in the object dealloc that will use
> a method (from another object), that requires a module python-string
> to resolve the method.

You could store a reference to the string in a
module-level C variable. That should make it
immune to the module-clearing that happens
when shutting down the interpreter.

--
Greg



More information about the Pyrex mailing list