Author mandolaerik
Recipients andrei.avk, eric.smith, mandolaerik, serhiy.storchaka
Date 2021-05-20.11:43:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621510980.06.0.391517589435.issue43905@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-05-20 11:43:00mandolaeriksetrecipients: + mandolaerik, eric.smith, serhiy.storchaka, andrei.avk
2021-05-20 11:43:00mandolaeriksetmessageid: <1621510980.06.0.391517589435.issue43905@roundup.psfhosted.org>
2021-05-20 11:43:00mandolaeriklinkissue43905 messages
2021-05-20 11:43:00mandolaerikcreate