pyre.patterns.Singleton

Module Contents

class pyre.patterns.Singleton.Singleton

Bases: pyre.patterns.AbstractMetaclass.AbstractMetaclass

Provide support for classes that create and manage a single instance

Adapted from Michele Simionato’s implementation

__call__(cls, **kwds)

Build and return the singleton instance every time the constructor is called