Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



I'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)

?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: