>>> q = a.a >>> q(10) Traceback (most recent call last): File "", line 1, in TypeError: a() takes exactly 1 argument (2 given) >>> w = a.foo >>> w(10) 41