Raymond Hettinger <raymond.hettin...@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@python -> rhettinger nosy: +rhettinger versions: +Python 3.10, Python 3.11 -Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45198> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com