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 steven.daprano
Recipients docs@python, hongweipeng, steven.daprano
Date 2019-10-19.07:53:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571471600.82.0.863997888996.issue38524@roundup.psfhosted.org>
In-reply-to
Content
The documentation doesn't mention ``__set_name__``, but it does say that cached_property is useful for properties which are "effectively immutable".

The ``__set_name__`` error message is pretty cryptic, that seems to have something to do with this PEP:

https://www.python.org/dev/peps/pep-0487/

but why it is relevant here, I don't know. I would expect that cached_property should apply only to read-only properties.

So I think that at the very least, this needs better documentation and a better error message.
History
Date User Action Args
2019-10-19 07:53:20steven.dapranosetrecipients: + steven.daprano, docs@python, hongweipeng
2019-10-19 07:53:20steven.dapranosetmessageid: <1571471600.82.0.863997888996.issue38524@roundup.psfhosted.org>
2019-10-19 07:53:20steven.dapranolinkissue38524 messages
2019-10-19 07:53:20steven.dapranocreate