[issue38553] Document functools.cached_property supports value updating and clearing

2019-10-21 Thread Laurie Opperman
Laurie Opperman added the comment: @hongweipeng What can be solved? Do you mean `functools.cached_property` should inherit `property`? First, this would break existing code dependant on the functionality of `functools.cached_property` (admittedly, Python 3.8 was release less than two weeks

[issue38553] Document functools.cached_property supports value updating and clearing

2019-10-21 Thread hongweipeng
hongweipeng added the comment: It can be solved by extending propery. `class cached_property(property):` . How about this idea? -- nosy: +hongweipeng ___ Python tracker ___

[issue38553] Document functools.cached_property supports value updating and clearing

2019-10-21 Thread Laurie Opperman
New submission from Laurie Opperman : As I discovered during working on bpo-38545, `functools.cached_property` natively supports cached value setting/updating and clearing (via attribute assignment and deletion, respectively) through mechanisms defined in the language for non-data