27 Aug
2020
27 Aug
'20
8:45 p.m.
On Thu, Aug 27, 2020, 1:35 PM Ricky Teachey
Conceptually, an "immutable collection" serves a different purpose than "a
collection of axes", even if they work then same under the hood.
What about something like this:
class Name(NamedTuple): first: str last: str
d = NamedKeyDict(Named) d[first='david', last='mertz'] = 1_000_000 # dollars
Sure, maybe. But this is probably better as a dataclass nowadays. Actually, I'm not sure what NamedKeyDict is meant to do in your example.