Terry J. Reedy <[EMAIL PROTECTED]> added the comment:

The default equality comparison of Python objects is by id.
Some classes override this, others, in particular, functions, do not.
I also agree that partial functions should not either.

However, you can subclass functools.partial (I checked in 3.0b2) and add
__eq__ and __ne__ methods that implement the definition *you* need, even
if it gives the 'wrong' result of Antoine example.

----------
nosy: +tjreedy
resolution:  -> rejected
status: open -> closed

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3564>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to