On Thu, Aug 20, 2020 at 12:55 PM Jonathan Fine <jfine2...@gmail.com> wrote:

> In addition, I would like
>     >>> d = dict()
>     >>> d[x=1, y=2] = 5
> to work. It works out-of-the-box for my scheme. It can be made to work
> with a subclass of dict for the D'Aprano scheme.
>

This raises the question about this advantage (I agree it could be an
advantage): is providing such a subclass really such a heavy lift?
Additionally and related: what would be the real world advantages of d[x=1,
y=2], where d is just a vanilla dict, working right out of the box?

---
Ricky.

"I've never met a Kentucky man who wasn't either thinking about going home
or actually going home." - Happy Chandler
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/2WYM47EXNV6OOQQ53E42WPMAU6A2ES2K/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to