[Python-Dev] any support for a methodcaller HOF?
Chris or Leslie Smith
smiles at worksmail.net
Mon Feb 6 03:50:43 CET 2006
| making the implied return statment visible might also be a good idea,
| e.g.
|
| lambda x, y: return x + y
|
| or even
|
| def (x, y): return x + y
|
Although I don't understand the implications of making such a change, the 2nd alternative above looks very nice. Whenever I write a lambda I feel like I am doing something non-pythonic. I think the 2nd proposal increases the readability of the lambda, something that is often touted as being part of what makes python beautiful.
/c
More information about the Python-Dev
mailing list