30 Oct
2019
30 Oct
'19
2:55 p.m.
On Wed, Oct 30, 2019, 09:43 Steve Holden wrote:
Since 3.7 it may be that dataclasses offer a cleaner implementation of the functionality you suggest.
Actually, IMO in this case it would be more useful and fitting to use namedtuples rather than dataclasses, since CSV rows are naturally tuple-like, and it would be compatible with existing code written for the tuple-based interface.