[issue12167] test_packaging reference leak

Éric Araujo report at bugs.python.org
Fri Jul 29 16:48:56 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

I edited my patch to use a copy instead of an explicit empty dict, but I found a bug.  The restore code unpacks the saved_caches object to (cache, items), but saved_caches is (id(cache), cache, cache.copy()).  I’m surprised the unpacking works; I don’t want to commit before I understand that.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12167>
_______________________________________


More information about the Python-bugs-list mailing list