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 r.david.murray
Recipients Jesse.Aldridge, r.david.murray
Date 2010-02-02.02:52:05
SpamBayes Score 1.2013568e-10
Marked as misclassified No
Message-id <1265079128.93.0.324362521986.issue7835@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch that fixes the problem for shelve.  For the more general problem with Python shutdown and module cleanup, see issue 812369.

I can come up with a sort-of unit test for this (setting _ClosedDict to None, calling close to prove it doesn't generate an error, and restoring _CloseDict), but it is rather artificial, since the real bug involves __del__ getting called during shutdown after module finalization.  So I'm not sure the unit test is worthwhile.
History
Date User Action Args
2010-02-02 02:52:09r.david.murraysetrecipients: + r.david.murray, Jesse.Aldridge
2010-02-02 02:52:08r.david.murraysetmessageid: <1265079128.93.0.324362521986.issue7835@psf.upfronthosting.co.za>
2010-02-02 02:52:07r.david.murraylinkissue7835 messages
2010-02-02 02:52:06r.david.murraycreate