On 1/24/2011 1:51 PM Alan said...
Why do function objects compare in this way to numbers?

To provide ordering capabilities. IIRC, comparisons of differing types are arbitrary but consistent.


Emile

Thanks,
Alan Isaac


def f(): return
...
f>5
True



--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to