Re: [Python-Dev] Proposal: dict.with_values(iterable)

2019年4月22日 21:48:40 -0700

On Tue, Apr 23, 2019 at 11:30 AM Steve Dower <[email protected]> wrote:
>
> Or possibly just "dict(existing_dict).update(new_items)".
>
Do you mean .update accepts values tuple?
I can't think it's
> My primary concern is still to avoid making CPython performance
> characteristics part of the Python language definition. That only makes
> it harder for alternate implementations.
Note that this proposal is not only for key sharing dict:
* We can avoid rebuilding hash table again and again.
* We can avoid checking duplicated keys again and again.
These characteristics are not only for Python, but for all mapping
implementations using hash table.
-- 
Inada Naoki <[email protected]>
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to