lazy_property¶
-
class
sknano.core.
lazy_property
(func)[source] [edit on github][source]¶ Bases:
object
lazy property descriptor
Used as a decorator to create lazy attributes. Lazy attributes are evaluated on first use.
Methods
invalidate
(instance, name)Invalidate a lazy attribute. Methods Summary
invalidate
(instance, name)Invalidate a lazy attribute. Methods Documentation
-
classmethod
invalidate
(instance, name)[source] [edit on github][source]¶ Invalidate a lazy attribute.
This obviously violates the lazy contract. A subclass of lazy may however have a contract where invalidation is appropriate.
-
classmethod