Book:
Help:
Guides:
Misc:
DEVELOPER API:
ClassPropertyReadonly
DEVELOPING ODEV:
Class Property. Use with @classmethod.
@classmethod
class C(object): @ClassProperty @classmethod def x(cls) -> int: return 1 print(C.x) print(C().x)
Note
This class doesn’t actually work for setters, only getters.