News for hackers. Stuff that matters.
Re:Common Python Mistakes by maxerickson on Thursday May 08, 2014 @03:30PM (#7717160)
A function defined with def would work just the same there.

It would have a big ugly 'return' in it and be a few characters longer, but it would work the same, so I don't see what lambda brings to it.

Re:Common Python Mistakes by nine_k on Thursday May 08, 2014 @04:34PM (#7717503)
Both def and lambda would fail identically in this context.