"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
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:
>
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