A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2019-April/157160.html below:

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

[Python-Dev] Proposal: dict.with_values(iterable) [Python-Dev] Proposal: dict.with_values(iterable)Inada Naoki songofacandy at gmail.com
Tue Apr 23 00:43:07 EDT 2019
On Tue, Apr 23, 2019 at 11:30 AM Steve Dower <steve.dower at python.org> 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  <songofacandy at gmail.com>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4