3 ms·
from pep 3099: At one point lambda was slated for removal in Python 3000. Unfortunately no one was able to come up with a better way of providing
by jauco 18y ago
from pep 3099:
At one point lambda was slated for removal in Python
3000. Unfortunately no one was able to come up with a
better way of providing anonymous functions. And so
lambda is here to stay.
But it is here to stay as-is. Adding support for
statements is a non-starter. It would require allowing
multi-line lambda expressions which would mean a
multi-line expression could suddenly exist. That would
allow for multi-line arguments to function calls, for
instance. That is just plain ugly.
Thread: "genexp syntax / lambda", http://mail.python.org/pipermail/python-3000/2006-April/001042.html http://mail.python.org/pipermail/python-3000/2006-April/0010...
- mojuba 18y agoI understand there are syntactic obstacles, in fact I've been following these discussions, but... I'm very sorry, who cares?