pygritia.prop module

Provides LazyProp class

class pygritia.prop.LazyProp(action: pygritia.core.LazyAction, origin: Optional[pygritia.core.LazyMixin] = None)[source]

Bases: pygritia.lazy.Lazy

LazyProp 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).

pygritia.prop.this

Entry point of LazyProp