On Thu, Aug 20, 2020 at 1:58 PM Christopher Barker <[email protected]> wrote:
> On Thu, Aug 20, 2020 at 12:55 PM Jonathan Fine <[email protected]> > 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 -- [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/UAVGIQ245TS7I2MGM7VTPNHKBK7KFMVD/ Code of Conduct: http://python.org/psf/codeofconduct/
