core.static.singleton

core.static.singleton.singleton(myclass)[source]
Declare a Class as a singleton, which can only have a single instance at the same time
  • adds a instance() class method which returns the current instanced object