News for hackers. Stuff that matters.
Re:Stop writing classes... by kisielk on Sunday March 18, 2012 @12:34AM (#3719112)
Beware that once you subclass namedtuple you are losing out on one of its beneficial characteristics: memory efficiency. Instances of subclasses have an instance dict which has a non-trivial overhead. You can avoid this by defining __slots__ again in the subclass.

There are no comments on this comment yet.