This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients brett.cannon, ggenellina, gpk, jamescooper, thomasda, yangzhang
Date 2008-02-05.20:01:27
SpamBayes Score 0.010164464
Marked as misclassified No
Message-id <>
I think the general idea of the problem has been stated, but I figured I
would state the official issue.  When Python begins to shutdown it takes
each module and sets each variable in the global namespace to None. If a
thread has not terminated before the interpreter terminates then the
thread tries to use a global variable which has been set to None.

This is not about to change since this occurs because of coding
"errors". You must make sure that either your thread is as safe as a
__del__ method (which means no global namespace access) or you can't let
the app exit until you are positive all of your threads have terminated,
not just asked them to shutdown since this is all asynchronous.
Date User Action Args
2008-02-05 20:01:29brett.cannonsetspambayes_score: 0.0101645 -> 0.010164464
recipients: + brett.cannon, gpk, ggenellina, yangzhang, thomasda, jamescooper
2008-02-05 20:01:29brett.cannonsetspambayes_score: 0.0101645 -> 0.0101645
messageid: <>
2008-02-05 20:01:27brett.cannonlinkissue1722344 messages
2008-02-05 20:01:27brett.cannoncreate