[New-bugs-announce] [issue41493] Refactoring dictresize to accept only new keysize

Inada Naoki report at bugs.python.org
Thu Aug 6 05:04:27 EDT 2020


New submission from Inada Naoki <songofacandy at gmail.com>:

dictresize accept `minsize` and calculate `newsize` which is `newsize >= minsize`.
Some caller pass the exact dk_size so calculating `newsize` is not necessary.

Split calculating `newsize` from `minused` into new function.
Additonally, use _Py_bit_length for the calculation when possible.

----------
components: Interpreter Core
messages: 374919
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: Refactoring dictresize to accept only new keysize
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41493>
_______________________________________


More information about the New-bugs-announce mailing list