I try to use a parameter of another function. I prefer to not use global variable. I try the following one, but I have an error. I search in google and here but I haven't found something to help me
class MainHandler(BaseHandler):
def get(self):
******
all_list = *a list*
******
def post(self):
for i in self.all_list:
if i[0] == something:
****
And I have this error: AttributeError: 'MainHandler' object has no attribute 'all_list'
all_listin.get()onself.. And this is about managing instance state, not about passing parameters between functions (or methods).