On Thu, Aug 20, 2020 at 1:58 PM Christopher Barker <python...@gmail.com>
wrote:

> 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.
>>>
>>
> 1) it does? could you explain that, I can't see it.
>

My understanding is that the "o" class would be static and thus hashable,
so anything that accepts a hashable key/index would be able to use this
(correct me if I am wrong Jonathan).

I think this is a bad idea, since it would mean classes could seem to
support keyword arguments but silently do the completely wrong thing,
especially if someone accidentally uses an older version.
_______________________________________________
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/UAVGIQ245TS7I2MGM7VTPNHKBK7KFMVD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to