why are functions greater than numbers?

Alan alan.isaac at gmail.com
Mon Jan 24 16:51:20 EST 2011


Why do function objects compare in this way to numbers?
Thanks,
Alan Isaac


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




More information about the Python-list mailing list