difference between 'global varName' and 'self.varName' in python : <p>what is the use of writing 'global varName' in the body of constructor ?
I mean we can achive the same goal by writting 'self.varName' ?  For Example</p>

<pre><code>class Mine_Global:
    def __init__(self):
        global varName
        varName = 3
        self.newInsVar = 7

if __name__ == "__main__":
    global varName
    obj1 = Mine_Global()
    print varName, obj1.newInsVar;
    varName = varName + 2
    print varName, obj1.newInsVar;

    obj2 = Mine_Global()
    print varName, obj2.newInsVar
</code></pre>
