thread vs GC

Jeff Epler jepler at unpythonic.net
Thu Jun 2 23:04:23 EDT 2005


I suspect that getting the threads to die will be tricky, and as written
the thread holds a reference to the 'primegen' instance (this part can
be cured, but it still doesn't ever make the thread exit).

Instead of figuring out how to get this to clean itself up, why not make
sure you only make one 'primegen' instance, using one of the various
singleton patterns?  There may still be something "uncollectable", but
at least there will only be one.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050602/293d4888/attachment.sig>


More information about the Python-list mailing list