[issue45198] __set_name__ documentation not clear about its usage with non-descriptor classes

Raymond Hettinger report at bugs.python.org
Wed Sep 15 12:33:42 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

You are correct that __set_name__ works for non-descriptor classes as well.

The docs for it should be moved out of the "Implementing Descriptors" section.  Also, it should have a non-descriptor example.

----------
assignee: docs at python -> rhettinger
nosy: +rhettinger
versions: +Python 3.10, Python 3.11 -Python 3.6, Python 3.7, Python 3.8

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


More information about the Python-bugs-list mailing list