17.1.1.1.2.10. cobra.core.singleton

Define the singleton meta class.

17.1.1.1.2.10.1. Module Contents

17.1.1.1.2.10.1.1. Classes

Singleton

Implementation of the singleton pattern as a meta class.

class cobra.core.singleton.Singleton[source]

Bases: type

Implementation of the singleton pattern as a meta class.

_instances[source]
__call__(cls, *args, **kwargs)[source]

Override an inheriting class’ call.