]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Jack Jansen hit a bug in the new dict code, reported on python-dev.
authorTim Peters <tim.peters@gmail.com>
Wed, 23 May 2001 23:33:57 +0000 (23:33 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 23 May 2001 23:33:57 +0000 (23:33 +0000)
commit0c6010be75cf537e74dfa1584a19dae2247f903b
treea57165e9c8aa18b9a11c185f3bd018c9dacd65e8
parenta5ca7dd71ad0b3d05e884c43aacbc37619af9779
Jack Jansen hit a bug in the new dict code, reported on python-dev.

dictresize() was too aggressive about never ever resizing small dicts.
If a small dict is entirely full, it needs to rebuild it despite that
it won't actually resize it, in order to purge old dummy entries thus
creating at least one virgin slot (lookdict assumes at least one such
exists).

Also took the opportunity to add some high-level comments to dictresize.
Lib/test/test_operations.py
Objects/dictobject.c