<div dir="ltr">It would be nice if dataclasses (https://docs.python.org/3/library/dataclasses.html#dataclasses.dataclass) had an option to make them a sequence.  This would make<div><br></div><div>dataclass(frozen=True, order=True, sequence=True)</div><div><br></div><div>an optionally-typed version of namedtuple.  It would almost totally supplant it except that namedtuples have a smaller memory footprint.</div><div><br></div><div>sequence would simply inherit from collections.abc.Sequence and implement the two methods __len__ and __getitme__.</div><div><br></div><div>Best,</div><div><br></div><div>Neil</div></div>