Erik Carstensen <mandolae...@gmail.com> added the comment:
Would it make sense to make dataclasses iterable, like so? def __iter__(self): return (getattr(self, field.name) for field in fields(self)) With that in place, deprecating astuple would maybe be less disruptive? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43905> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com