[docs] [issue31441] Descriptor example in documentation is confusing, possibly wrong

Raymond Hettinger report at bugs.python.org
Thu Sep 14 02:25:59 EDT 2017


Raymond Hettinger added the comment:

The example should be modernized to show-off the new __set_name__() part of the descriptor protocol.  Computing the name on-demand is better that relying an optional user entered alternate name and having to store that name for future reference.

----------
assignee: docs at python -> 

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31441>
_______________________________________


More information about the docs mailing list