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 rhettinger
Recipients rhettinger, serhiy.storchaka, xtreak
Date 2019-03-19.18:55:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553021745.73.0.807223359207.issue36326@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-03-19 18:55:45rhettingersetrecipients: + rhettinger, serhiy.storchaka, xtreak
2019-03-19 18:55:45rhettingersetmessageid: <1553021745.73.0.807223359207.issue36326@roundup.psfhosted.org>
2019-03-19 18:55:45rhettingerlinkissue36326 messages
2019-03-19 18:55:45rhettingercreate