Python interpreter bug

alainpoint at yahoo.fr alainpoint at yahoo.fr
Fri Oct 7 10:33:22 EDT 2005


In fact, i want to sort the list based on the 'allocated attribute' and
at the same time, test membership based on the id attribute.
__cmp__ logically implies an ordering test, not an identity test. These
two notions seems to be confounded in python which is unfortunate. Two
objects could have the same rank while still being different.
Alain




More information about the Python-list mailing list