Trey Hunner @trey.io · Apr 25

But I would recommend using functools.cached_property instead. With @cached_property the value is computed once, then cached as a regular attribute. The first access does the work. Every access after that is instant. pym.dev/p/2mjp9/

3 likes 0 replies

?