20 Aug
2020
20 Aug
'20
6:19 p.m.
On Thu, Aug 20, 2020 at 1:58 PM Christopher Barker <pythonchb@gmail.com> wrote:
On Thu, Aug 20, 2020 at 12:55 PM Jonathan Fine <jfine2358@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.