Singleton class in python
<p>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</p>

<pre><code>  class Test:
     name
     age

     def getobj(self):
        return (self.name+self.age)

    t= Test()
</code></pre>
