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 ggenellina
Recipients LambertDW, ggenellina, marystern
Date 2009-01-31.03:58:23
SpamBayes Score 1.4987254e-08
Marked as misclassified No
Message-id <1233374305.18.0.186691285987.issue5099@psf.upfronthosting.co.za>
In-reply-to
Content
At interpreter shutdown, the module's global variables are set to None 
before the module itself is released. __del__ methods may be called in 
those precaries circumstances, and should not rely on any global state.

A temporary fix would be to make Popen._internal_poll and 
Popen._handle_exitstatus keep a reference to the os module (just add a 
default argument os=os, like sys=sys in __del__). But this is just a 
hack; the real fix would be to avoid defining __del__ at all.

A patch for subprocess.py is attached.
History
Date User Action Args
2009-01-31 03:58:25ggenellinasetrecipients: + ggenellina, LambertDW, marystern
2009-01-31 03:58:25ggenellinasetmessageid: <1233374305.18.0.186691285987.issue5099@psf.upfronthosting.co.za>
2009-01-31 03:58:24ggenellinalinkissue5099 messages
2009-01-31 03:58:23ggenellinacreate