Message355004
Regarding the "attrname" property idea: unfortunately, that won't work, as `__set_name__` doesn't just provide the attribute name, it also provides a reference to the class itself.
cached_property needs both pieces of information, not just the attribute name. |
|
Date |
User |
Action |
Args |
2019-10-20 13:30:54 | ncoghlan | set | recipients:
+ ncoghlan, carljm, steven.daprano, docs@python, serhiy.storchaka, hongweipeng |
2019-10-20 13:30:54 | ncoghlan | set | messageid: <1571578254.16.0.165648614697.issue38524@roundup.psfhosted.org> |
2019-10-20 13:30:54 | ncoghlan | link | issue38524 messages |
2019-10-20 13:30:54 | ncoghlan | create | |
|