[issue41493] Refactoring dictresize to accept only new keysize

2020-08-06 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue41493] Refactoring dictresize to accept only new keysize

2020-08-06 Thread Inada Naoki
Inada Naoki added the comment: New changeset d9323a8c6e07071a59dc4c910661db33236c01b2 by Inada Naoki in branch 'master': bpo-41493: Refactoring dictresize (GH-21751) https://github.com/python/cpython/commit/d9323a8c6e07071a59dc4c910661db33236c01b2 -- ___

[issue41493] Refactoring dictresize to accept only new keysize

2020-08-06 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +20894 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21751 ___ Python tracker ___

[issue41493] Refactoring dictresize to accept only new keysize

2020-08-06 Thread Inada Naoki
New submission from Inada Naoki : 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 t