pygritia.prop module¶
Provides LazyProp class
-
class
pygritia.prop.LazyProp(action: pygritia.core.LazyAction, origin: Optional[pygritia.core.LazyMixin] = None)[source]¶ Bases:
pygritia.lazy.LazyLazyProp makes lazy expression as a descriptor
>>> class A: ... hello = "hello" ... world = this.hello + ", world!" >>> A().world hello, world!
-
pygritia.prop.setattr_¶ Implement setattr(self, name, value).