On Fri, 17 Jul 2020 at 20:58, Christopher Barker <[email protected]> wrote:

> So what would the “key object” be I the proposed case:
>
>  d2[a=1, b=2]
>
> A namedtuple? Or namedtuple-like object?

This was already discussed in PEP-472 as the "namedtuple" strategy,
but among the various negative points were the relative lack of
maturity of the namedtuple and the _n magic field that we assigned to
it.
I kind of feel they are still relevant, but I might be wrong. The PEP
is 5 years old.


-- 
Kind regards,

Stefano Borini
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/EK6LXJ453JCU3HUAMDNPZSWGBOAJFATV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to