Hello,
I'm a little confused about None in comparison.

>>> id ( None )
3086100672L
>>> id ( 1 )
134541104
>>> None < 1
True
>>>

I thought, the id of the object is the last comparison criterion.
Therefore, None must be greater then 1.
Where is the behaviour of the comparison defined?. In the __cmp__ of
int. Or in the global cmp Function?

Thanks in advance
Rainer
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to