Skip to main content

Timeline for answer to Python: pass statement in lambda form by lvc

Current License: CC BY-SA 3.0

Post Revisions

5 events
when toggle format what by license comment
Jul 27, 2016 at 14:20 history edited Lee Netherton CC BY-SA 3.0
[Edit removed during grace period]
Oct 14, 2012 at 14:39 comment added lvc @Rez it is actually the same - all Python functions return a value; if they fall off the end, or reach a bare return, they return None.
Oct 14, 2012 at 14:37 vote accept Rez
Oct 14, 2012 at 14:37
Oct 14, 2012 at 14:32 comment added Rez That makes sense, thanks! But then, since lambda: None still returns a value, is there any way I can define an anonymous function that behaves exactly like def f(): pass?
Oct 14, 2012 at 14:24 history answered lvc CC BY-SA 3.0