4 ms·
Does this add support for multiple-statement lambdas? IMO lack of support for them (because of the lack of a good syntax) is the main downside of Python’s sign
by pansa2 2y ago
Does this add support for multiple-statement lambdas?
IMO lack of support for them (because of the lack of a good syntax) is the main downside of Python’s significant indentation.
- Sohcahtoa82 2y agoI've never understood the strong demand for multi-statement lambdas. At best, it's just syntactic sugar. What's wrong with: def my_map_function(x): # do stuff new_list = map(my_map_function, my_list) ?