Author rhettinger
Recipients rhettinger, serhiy.storchaka, xtreak
Date 2019-03-19.18:55:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:45rhettingersetrecipients: + rhettinger, serhiy.storchaka, xtreak
2019-03-19 18:55:45rhettingersetmessageid: <>
2019-03-19 18:55:45rhettingerlinkissue36326 messages
2019-03-19 18:55:45rhettingercreate