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.gaill...@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 > -- http://mail.python.org/mailman/listinfo/python-list