For a class in python how to implement singleton properties to it.Please provide an example for the following class.What i am basically trying to understand is that if an instance of the class exist then it should return the existing instance else create an instance of that class
class Test:
name
age
def getobj(self):
return (self.name+self.age)
t= Test()