Nick Coghlan <ncogh...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38524>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to