Hi, On 10/02/11 3:19 PM, Kenneth Gonsalves wrote: > lambda is not considered pythonic (by guido anyway)
Well, a proposal for implementing multi-line statements in lambda was earlier rejected by Guido as the proposed solutions were considered unpythonic. The reason being, it was difficult to come up with a clean syntax for representing multi-line blocks within an expression without breaking Python's indentation rules. lambda expressions as such was not mentioned by Guido as unpythonic anywhere. Infact, any python code that follows "The Zen of Python" can be considered pythonic - and I don't see how lambda expressions used in a comprehensible way break them. Cheers, Chandrashekar. -- http://www.chandrashekar.info/ http://www.slashprog.com/ _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
