class A: def __init__(self, aa, bb): self.aa, self.bb = aa, bb def f(self): print self.bb