Re: [Tutor] lambda

2011-03-20 Thread Ajit Deshpande
Fantastic explanation everyone. Thanks a lot. Looking forward to using lambda going forward. ~ Ajit Deshpande On Sat, Mar 19, 2011 at 6:07 PM, Steven D'Aprano wrote: > Ajit Deshpande wrote: > >> I am trying to figure out where lambda functions can be useful. Has anyone >

Re: [Tutor] Need some clarification on this

2011-03-19 Thread Ajit Deshpande
tension to your code: >>> a=5.0 >>> b=5.0 >>> a==b True >>> a is b False Because I used "5.0" instead of "5", the "is" operator is giving a different result ("False") ~ Ajit Deshpande 2011/3/19 Yaşar Arabacı > >

[Tutor] lambda

2011-03-19 Thread Ajit Deshpande
this. I would simply do: add_one = x + 1 Can you provide some useful use cases for lambda functions? ~ Ajit Deshpande ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor