]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Improve clear() method. Keeps key/value refcnts >= 1 until final dict.clear() so...
authorRaymond Hettinger <python@rcn.com>
Sat, 3 Apr 2010 03:14:28 +0000 (03:14 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 3 Apr 2010 03:14:28 +0000 (03:14 +0000)
commit6b96ecb0ab8d06b7c11d1b82baebc47452a7b13e
tree7a05a7e8769a176b25d3858cb2f86bf3c3c8907f
parent93232660bb96b8ab10de393850007b49b0cc595c
Improve clear() method.  Keeps key/value refcnts >= 1 until final dict.clear() so that decrefs to zero won't trigger arbitrary code .  Also runs a bit faster.
Lib/collections.py