class MyTest(): my_obj = None def __new__(cls,*args,**kwargs): if not cls.my_obj: cls.my_obj =object.__new__(cls,*args,**kwargs) return cls.my_obj