This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author andrei.avk
Recipients andrei.avk, dlax, eric.smith, jmg, rhettinger, terry.reedy
Date 2021-07-23.20:07:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627070825.49.0.24821991116.issue42414@roundup.psfhosted.org>
In-reply-to
Content
I was thinking about adding this to named tuple as well, but it's less useful than with dataclasses because named tuples are simpler and smaller. However if this feature is added to dataclasses and is widely used, it would make a lot of sense to expand it to namedtuples especially if people request that.

I don't think it makes sense for attributes because many attributes are immutable so you can't add a doc attr to them. Additionally, most attrs can be documented via methods that set or update them.

I agree it's a good idea to bring this to Ideas, I'll think about this for a few days and then do that. Thanks!
History
Date User Action Args
2021-07-23 20:07:05andrei.avksetrecipients: + andrei.avk, rhettinger, terry.reedy, eric.smith, jmg, dlax
2021-07-23 20:07:05andrei.avksetmessageid: <1627070825.49.0.24821991116.issue42414@roundup.psfhosted.org>
2021-07-23 20:07:05andrei.avklinkissue42414 messages
2021-07-23 20:07:05andrei.avkcreate