[issue1513] object.c do_compare comparison ordering error

Joseph Armbruster report at bugs.python.org
Wed Nov 28 19:13:40 CET 2007


Joseph Armbruster added the comment:

I had looked at the behavior in 2.5 and did not know if this would still
be the case:

>>> cmp(None,'a')
-1
>>> cmp('a',None)
1
>>> cmp(None,None)
0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1513>
__________________________________


More information about the Python-bugs-list mailing list