Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36326>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to