-
-
Notifications
You must be signed in to change notification settings - Fork 409
Closed
Labels
Description
Hey there!
This is more of a question than an issue :-)
Some of the classes that I'm trying to migrate to attrs have attributes that are expensive to compute. These attributes are either never accessed or accessed multiple times in quick succession. In those cases, I prefer delaying the cost of computing the attribute in case it is not needed -- but I also never want to compute the attribute twice for the same instance. I use pydanny/cached-property for this, which works fine until you use slots=True.
Any advice?
EpicWink, Julian, mcmasn-amzn and Socob