diff options
author | Angela Liss <59097311+angela-tarantula@users.noreply.github.com> | 2025-05-08 13:13:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-08 13:13:11 -0400 |
commit | 421ba589d02b53131f793889d221ef3b1f1410a4 (patch) | |
tree | 1eae29e36cdce5e1ef2f52b6e36fdc77ce2587a5 /Lib/difflib.py | |
parent | 2d82ab761ab8051440e486ca68355514f3df42aa (diff) | |
download | cpython-421ba589d02b53131f793889d221ef3b1f1410a4.tar.gz cpython-421ba589d02b53131f793889d221ef3b1f1410a4.zip |
gh-132762: Fix underallocation bug in `dict.fromkeys()`(gh-133627)
The function `dict_set_fromkeys()` adds elements of a set to an existing
dictionary. The size of the expanded dictionary was estimated with
`PySet_GET_SIZE(iterable)`, which did not take into account the size of the
existing dictionary.
Diffstat (limited to 'Lib/difflib.py')
0 files changed, 0 insertions, 0 deletions