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.

>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/FTY5I2IEMYLM7PVZ6TPXFJKM6CLLN2I4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to