Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

Singleton Design in Python

Language: Editor: Layout:
+ ] Show input
Absolute running time: 0.26 sec, cpu time: 0.32 sec, memory peak: 16 Mb, absolute service time: 0,27 sec 
edit mode |  history  | discussion
Error(s), warning(s):
Traceback (most recent call last):
  File "source_file.py", line 16, in <module>
    r = Singleton()
  File "source_file.py", line 12, in __init__
    raise Exception("This is a singleton class:")
Exception: This is a singleton class: