Access instance variable from method
<p>I can't access the instance variable from method within the same class.</p>

<pre><code>class GetImagesFromSinglePage(object):
     def __init__(self,source):
        self.source = source
        self.imgLinks = []
     def retrieveImg(source):
        #.....tasks
        self.imgLinks = tempimgLinks #there it show can't access that          variable
     def getLink(self):
        return self.imgLinks
</code></pre>

<p>What should I do?
Regards,
John</p>