On Mon, Jan 24, 2011 at 2:51 PM, Alan <alan.is...@gmail.com> wrote: > Why do function objects compare in this way to numbers? > Thanks, > Alan Isaac > > >>>> def f(): return > ... >>>> f>5 > True
http://docs.python.org/library/stdtypes.html#comparisons Python 3 fixes this particular wart. -- http://mail.python.org/mailman/listinfo/python-list