On Mon, Jan 24, 2011 at 2:51 PM, Alan <alan.isaac at 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.