[issue43468] functools.cached_property incorrectly locks the entire descriptor on class instead of per-instance locking

2021-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it was a mistake to use lock in cached_property at first place. In most cases there is nothing wrong in evaluating the cached value more than once. lru_cache() does not use a lock for calling the wrapped function, and it works well. The only lock i

<    1   2