Message26811
Bound methods of built-in objects have a strange
__cmp__/__hash__ combination: they compare equal only
if their __self__ are identical, but they hash based
on the hash of __self__ instead of its
_Py_HashPointer().
Built-in methods should consistently be based on the
identity *or* the equality of __self__. For reference,
regular instance methods are based on the equality. So
I propose to fix built-in method objects in the same
way. |
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:36:03 | admin | link | issue1350060 messages |
| 2007-08-23 14:36:03 | admin | create | |
|