lambda functions
Javier Collado
javier.collado at gmail.com
Mon Aug 31 03:59:55 EDT 2009
Hello,
This page has some advice about how to avoid some of the lambda
functions limitations:
http://p-nand-q.com/python/stupid_lambda_tricks.html
In particular, it suggests to use map function instead of for loops.
Best regards,
Javier
2009/8/31 Pierre <pierre.gaillard at gmail.com>:
> Hello,
>
> I would like to know if it is possible to define a loop in a lambda
> function....
>
> How to manage the indents ? Example :
> s_minus_1 = lambda s : for index in range(0, len(s)) : s[index] = s
> [index]-1
>
>
> Thanks !
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list