[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:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 developers themselves should be 
responsible for their code (if they can't use it exactly, they should choose to 
use the default, and python needs to do is provide that optional ability)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 was a good while ago so it may be worth scanning the tracker or python-dev 
archives to find where he opined.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: enhancement
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com