This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients MarSoft, docs@python, rhettinger, wim.glenn
Date 2020-11-24.00:44:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606178651.26.0.125221509301.issue34394@roundup.psfhosted.org>
In-reply-to
Content
For the record, __set_name__ isn't specific to descriptors.  It can be used with any class:

    >>> class A:
            def __set_name__(*args):
                print(args)
         
    >>> class B:
            x = A()
            y = A()
     
    (<__main__.A object at 0x7febfe01ac40>, <class '__main__.B'>, 'x')
    (<__main__.A object at 0x7febfe01a5e0>, <class '__main__.B'>, 'y')
History
Date User Action Args
2020-11-24 00:44:11rhettingersetrecipients: + rhettinger, docs@python, wim.glenn, MarSoft
2020-11-24 00:44:11rhettingersetmessageid: <1606178651.26.0.125221509301.issue34394@roundup.psfhosted.org>
2020-11-24 00:44:11rhettingerlinkissue34394 messages
2020-11-24 00:44:11rhettingercreate