As in title. I want to know if is it possible to change string into class and link it with it. Example of what I have in mind:
class Example:
def __init__(self, name, variable):
self.n = name
self.v = variable
tempclass = Example("tempclass", 1)
class1 = Example("class1", 2)
inpt = raw_input()
inpt()
stringtoclass = None
def function1():
stringtoclass = "%s" % (inpt)
## function that change string into link to specific class and gives
print stringtoclass.v
tempclassdoes not represent a class: it is a variable/binding.Exampleis a class. So what is really desired?marshalorpickle