summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-23 23:33:57 +0000
committerTim Peters <tim.peters@gmail.com>2001-05-23 23:33:57 +0000
commit0c6010be75cf537e74dfa1584a19dae2247f903b (patch)
treea57165e9c8aa18b9a11c185f3bd018c9dacd65e8 /Python/sysmodule.c
parenta5ca7dd71ad0b3d05e884c43aacbc37619af9779 (diff)
downloadcpython-git-0c6010be75cf537e74dfa1584a19dae2247f903b.tar.gz
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.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions