Re:Redesigning Python's named tuples
by joshuamorton on Friday September 01, 2017 @11:31AM
(#15149287)
Sure, but if you want an immutable object with iter, reasonable equality operators baked in, and named access, you can either define iter, eq, neq, and le on a new style slotted object with a bunch of getter descriptors, or you can make a namedtuple.
[ Parent
| on HN ]
There are no comments on this comment yet.