def getInstance():
        """ creating or just return the one and only class instance """
        if theClass not in classInstances:
            classInstances[theClass] = theClass()
        return classInstances[theClass]
 creating or just return the one and only class instance 
recipes/Python/578015_Simple_enum_mechanism/recipe-578015.py