[issue43905] dataclasses.astuple does deepcopy on all fields

Eric V. Smith report at bugs.python.org
Thu May 20 08:10:46 EDT 2021


Eric V. Smith <eric at trueblade.com> added the comment:

No, iteration is explicitly a non-goal of PEP 557. See the section on namedtuple for why: https://www.python.org/dev/peps/pep-0557/#why-not-just-use-namedtuple

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43905>
_______________________________________


More information about the Python-bugs-list mailing list