<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
| What is the notion of equal defined for functions?

Isness.  The developers did not see sufficient reason to refine it further 
by comparing all the attributes, including the code object.  But there has 
just been a discussion on pydev about the notion of equality for bound 
methods.

Isness is also the default notion of equality for user-class instances, but 
in this latter case, an explicit and different __eq__ method can be given.

tjr




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

Reply via email to