Eric V. Smith <e...@trueblade.com> added the comment: I once thought of building NamedTuple functionality into dataclasses, either as a parameter to @dataclass or as a new decorator. But it didn't get very far.
It would have to return a different class, like NamedTuple does, and this didn't fit in well with the original "keep @dataclass simple" mantra. It would also be especially confusing with frozen already existing. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33077> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com