Reference
Singleton types.
Example
from solus import Singleton
class Null(Singleton):
...
null = Null()
singleton = Singleton()
module-attribute
The singleton instance.
unsafe_singleton = UnsafeSingleton()
module-attribute
The unsafe singleton instance.
Singleton
The singleton type.
Source code in solus/core.py
66 67 68 69 70 |
|
SingletonType
Bases: type
The singleton meta type, used to implement singleton types.
Source code in solus/core.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
UnsafeSingleton
The unsafe singleton type.
Source code in solus/core.py
35 36 37 38 39 |
|
UnsafeSingletonType
Bases: type
The unsafe singleton meta type, used to implement unsafe singleton types.
Source code in solus/core.py
21 22 23 24 25 26 27 28 29 30 31 32 |
|