On Mon, Mar 21, 2016 at 2:03 PM, Ben Bacarisse <ben.use...@bsb.me.uk> wrote: > For experts here: why can't I write a lambda that has a statement in it > (actually I wanted two: lambda l, i: l[i] += 1; return l)?
https://docs.python.org/3/faq/design.html#why-can-t-lambda-expressions-contain-statements -- https://mail.python.org/mailman/listinfo/python-list