[Pyrex] module scope, and threads

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Sep 3 23:07:58 UTC 2006


ahalda at cs.mcgill.ca wrote:

> My solution was to create a module level pyrex object to keep at least one
> reference to the object active, for as long as the background thread needs
> the object.

That really should be the responsibility of the
C function that you're passing the object reference
to. Although if the calling module can be sure that
the previous object is no longer needed before
replacing it with a new one, this will work.

--
Greg




More information about the Pyrex mailing list