Message383868
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' | |
| Date | User | Action | Args | | 2020-12-27 21:41:34 | rhettinger | set | recipients: + rhettinger, ncoghlan, r.david.murray, ztane, xiang.zhang, abarry, apatrushev, Muhammad Alkarouri, xtreak, uriyyo | | 2020-12-27 21:41:34 | rhettinger | set | messageid: <1609105294.14.0.00796216499402.issue27794@roundup.psfhosted.org> | | 2020-12-27 21:41:34 | rhettinger | link | issue27794 messages | | 2020-12-27 21:41:34 | rhettinger | create | | |