[issue41523] functools.cached_property does not satisfy the property check
Pablo Galindo Salgado
report at bugs.python.org
Tue Aug 11 15:56:59 EDT 2020
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
> They are both descriptors, but cached_property is not a data descriptor.
I think this is one of the key reasons this should not return "True" for isinstance(A.b, property). Also, cached_property does not allow you to implement a setter or a deleter.
The docs say "Similar to property()" but not "the same as property()"
----------
nosy: +pablogsal
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41523>
_______________________________________
More information about the Python-bugs-list
mailing list