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 st...@pearwood.infowrote: Ajit Deshpande wrote: I am trying to figure out where lambda functions can be useful. Has anyone used

[Tutor] lambda

2011-03-19 Thread Ajit Deshpande
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

Re: [Tutor] Need some clarification on this

2011-03-19 Thread Ajit Deshpande
: 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ı yasar11...@gmail.com a=5 b=5 a == b True a is b True My question is, why a is b is true. What I expected