"walterbyrd" <[email protected]> wrote in message news:518b9dd9-69c5-4d5b-bd5f-ad567be62...@b38g2000prf.googlegroups.com...
> However in the methods are within a class, the scoping seems to work
> differently.
Not really, self is a formal parameter to the function. It would be
a strange language where a function's own arguments weren't in scope.
> def b(self):
> print self.x
Try changing it to:
def b(somethingotherthanself):
print self.x
--
http://mail.python.org/mailman/listinfo/python-list
