I have a class that has a classmethod and a instance method..The classmethod creates a class variable cls.name.
I would like to know how to access the class variable cls.name in my instance method - parent_method.
class Parent():
def __init__(self):
print "Parent initialized"
@classmethod
def resource_setup(cls):
cls.name = "P"
print "parent method"
def parent_method(self):
print self.name