singletonmethod

For Declarative subclasses, this decorator will call the method on the cls.singleton() object if called as a class method (or as normal if called as an instance method).


Methods

f __init__(self, func) ...

f __get__(self, obj, type=None) ...

See the source for more information.