
Public Member Functions | |
| def | __new__ |
| sets class attributs _default_instance and _instance_map if not set. | |
| def | __init__ |
| should not be called by subclasses | |
| def | __new_instance__ |
| to be initialize class instead of __init__ | |
| def | __del_instance__ |
| delete the instance 'name' | |
| def | __clean__ |
Definition at line 33 of file Singleton.py.
| def __new__ | ( | cls, | ||
| p | ||||
| ) |
sets class attributs _default_instance and _instance_map if not set.
and checks that no subclass overloads the __init__ method.
Definition at line 42 of file Singleton.py.
| def __init__ | ( | self, | ||
| p | ||||
| ) |
| def __new_instance__ | ( | self, | ||
| name | ||||
| ) |
to be initialize class instead of __init__
Reimplemented in EmploymentCenter, GraphManager, _HashTable, and KeyStone.
Definition at line 98 of file Singleton.py.
| def __del_instance__ | ( | cls, | ||
| name | ||||
| ) |
| def __clean__ | ( | self | ) |
1.5.6