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 Muhammad Alkarouri, abarry, apatrushev, ncoghlan, r.david.murray, rhettinger, uriyyo, xiang.zhang, xtreak, ztane
Date 2020-12-27.21:41:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609105294.14.0.00796216499402.issue27794@roundup.psfhosted.org>
In-reply-to
Content
Yurii, this looks nice.  I question whether *name* should be a part of the constructor because it immediately gets overridden by __set_name__ method.

>>> class A:
...    def x(self):
...        return 44
...    x = property(x, name='y')
...
>>> vars(A)['x'].name
'x'
History
Date User Action Args
2020-12-27 21:41:34rhettingersetrecipients: + rhettinger, ncoghlan, r.david.murray, ztane, xiang.zhang, abarry, apatrushev, Muhammad Alkarouri, xtreak, uriyyo
2020-12-27 21:41:34rhettingersetmessageid: <1609105294.14.0.00796216499402.issue27794@roundup.psfhosted.org>
2020-12-27 21:41:34rhettingerlinkissue27794 messages
2020-12-27 21:41:34rhettingercreate