March 29, 2022
4:46 p.m.
On 3/29/22 09:14, Christopher Barker wrote:
[...] I tried to use __slots__ in TupleWithNames, but apparently you can't use __slots__ in a tuple subclass ('cause tuple's already using it ??) -- but that could be done in a builtin. then it wouldn't need a __dict__
The `__dict__` is needed to store the field names -- did you add `__dict__` to the `__slots__`? (Of course, if you've added `__dict__` then you lose the limited size of `__slots__`.) -- ~Ethan~