Do int.__lt__/__gt__/etc. exist?

Chris Dutton cdutton at
Wed Sep 7 02:02:49 CEST 2005

I'm just curious.  I've been trying to demonstrate functional thinking 
in Python, but I can't find these methods for int objects.  It would be 
immensely helpful for something like:

filter(4 .__lt__, range(10))

As opposed to:

filter(lambda a: 4 < a, range(10))

More information about the Python-list mailing list