New submission from Inada Naoki <songofaca...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue41493> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com