class Person(object): def __init__(self): self.name ="aaa" def defineName(self): self.name="hello" def getName(self): print(self.name) def __new__(cls, *args, **kwargs): return object.__new__(cls)p = Person()p.getName()