Y
Hacker News
new
|
ask
|
show
|
jobs
by
throwaway274739
3595 days ago
I would also add
__slots__ = ()
to your class definition so that instances of Foo keep the small memory footprint benefits do namedtuple.