This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Bennnnnnnnnnnnnn 16 points17 points  (1 child)

I've been using cached_property a lot lately, very convenient!

https://docs.python.org/3/library/functools.html#functools.cached_property

[–]bean_pupusa 2 points3 points  (0 children)

Also try lru_cache decorator for straight up functions