Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
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. ---------- assignee: -> docs@python components: +Documentation nosy: +docs@python, steven.daprano _______________________________________ 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