passing parameter between functions on python
<p>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</p>

<pre><code>class MainHandler(BaseHandler):
    def get(self):
        ******
        all_list = *a list*  
        ******

    def post(self):
        for i in self.all_list:
           if i[0] == something:
                   ****
</code></pre>

<p>And I have this error: <code>AttributeError: 'MainHandler' object has no attribute 'all_list'</code></p>
