Message398092
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! |
|
Date |
User |
Action |
Args |
2021-07-23 20:07:05 | andrei.avk | set | recipients:
+ andrei.avk, rhettinger, terry.reedy, eric.smith, jmg, dlax |
2021-07-23 20:07:05 | andrei.avk | set | messageid: <1627070825.49.0.24821991116.issue42414@roundup.psfhosted.org> |
2021-07-23 20:07:05 | andrei.avk | link | issue42414 messages |
2021-07-23 20:07:05 | andrei.avk | create | |
|