At a loss on python scoping.
i at introo.me
Tue Mar 26 07:17:27 CET 2013
suppose I have a file like this:
r = 5
def func(self, s):
self.s = s
a = A()
print(a.r) # this should print 5, but where does py store the name of r
print(a.s) # this should print 3, also where does py store this name.
what's the underlying difference between the above example?
My gpg pubring is available via: gpg --keyserver
More on: http://about.me/introom
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list