Re: Do int.__lt__/__gt__/etc. exist?

2005-09-06 Thread Terry Reedy
"Chris Dutton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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)) D

Re: Do int.__lt__/__gt__/etc. exist?

2005-09-06 Thread en.karpachov
On Wed, 07 Sep 2005 00:02:49 GMT Chris Dutton wrote: > 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: >

Do int.__lt__/__gt__/etc. exist?

2005-09-06 Thread Chris Dutton
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)) -- http://mail.python.org/mailman