On Thu, Aug 20, 2020 at 1:58 PM Christopher Barker firstname.lastname@example.org wrote:
On Thu, Aug 20, 2020 at 12:55 PM Jonathan Fine email@example.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 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.