R. David Murray <rdmur...@bitdance.com> added the comment:

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.

----------
keywords: +easy, patch
nosy: +r.david.murray
priority:  -> normal
stage:  -> patch review
versions: +Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file16092/shelve-clean-shutdown.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7835>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to