[issue46813] Allow developer to resize the dictionary

2022-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm going to close this one. Making a new and previously rejected extension to one of Python's most import APIs requires broad discussion and buy-in. If you really want to push for this, please take it to the python-ideas list. -- resolution:

[issue46813] Allow developer to resize the dictionary

2022-02-21 Thread Inada Naoki
Inada Naoki added the comment: As I commented in https://github.com/faster-cpython/ideas/discussions/288, your benchmark is not fair. Include `{}` and `{}.resize(len(cases))` into the measured function. -- nosy: +methane ___ Python tracker

[issue46813] Allow developer to resize the dictionary

2022-02-21 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: I tried to look for it in issue list two days ago but couldn't find it. Maybe I should have been more careful :(. However, I think it is a useful modification. Just need to return a dict that satisfies the user's requirements, and the

[issue46813] Allow developer to resize the dictionary

2022-02-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: This idea surfaced once before and Guido shot it down. IIRC the rationale was the exposed implementation details, that would challenging for users to consistently set the size correctly, and that it may not make sense for other implementations. This

[issue46813] Allow developer to resize the dictionary

2022-02-20 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- keywords: +patch pull_requests: +29590 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31461 ___ Python tracker

[issue46813] Allow developer to resize the dictionary

2022-02-20 Thread penguin_wwy
New submission from penguin_wwy <940375...@qq.com>: https://github.com/faster-cpython/ideas/discussions/288 -- components: Interpreter Core messages: 413634 nosy: penguin_wwy priority: normal severity: normal status: open title: Allow developer to resize the dictionary type: