[issue7835] Minor bug in 2.6.4 related to cleanup at end of program

R. David Murray report at bugs.python.org
Tue Feb 2 03:52:08 CET 2010


R. David Murray <rdmurray at 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 <report at bugs.python.org>
<http://bugs.python.org/issue7835>
_______________________________________


More information about the Python-bugs-list mailing list