Message338397
The direct assignments to __doc__ are reasonable for named tuples because there usually isn't any code between the factory function call and the __doc__ assignments. For other classes, the technique is awkward because it widely separates the initial field name iterable from the corresponding docstrings.
Setting default values is responsibility of the __new__ or __init__ methods. It doesn't make sense to use a __slots__ dictionary for this purpose as well. |
|
Date |
User |
Action |
Args |
2019-03-19 18:55:45 | rhettinger | set | recipients:
+ rhettinger, serhiy.storchaka, xtreak |
2019-03-19 18:55:45 | rhettinger | set | messageid: <1553021745.73.0.807223359207.issue36326@roundup.psfhosted.org> |
2019-03-19 18:55:45 | rhettinger | link | issue36326 messages |
2019-03-19 18:55:45 | rhettinger | create | |
|