On Thu, Aug 20, 2020 at 12:55 PM Jonathan Fine firstname.lastname@example.org 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?
"I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler