Decorators missing
Brought to you by:
jakob_oswald,
polki
I have a decorator for making classes as singleton pattern:
def singleton(cls):
instances = {}
def getinstance():
if cls not in instances:
instances[cls] = cls()
return instances[cls]
return getinstance
but during synchronization ,app throws the exception .