"tiissa" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> It's interesting to note that self.pop instead of A.pop works as 
> expected.
> But I don't know why A.pop doesn't.

Because the name 'A' is no longer associated with the class object. 
However, self has a reference to the class -- the .__class__ attribute. 
Since self does not itself have a .pop attribute, the attribute resolution 
code then looks at the class.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to