I think it's a great idea personally. It's explicit and obvious. "lamda" is too computer sciencey
It's obvious and explicit that we're creating an unnamed, anonymous function this way.could look like this:words.sort(key = lambda x: x[2])I think the lambda keyword is difficult to understand for many people. It would be more pythonic to use an empty def call instead.For instance this:
words.sort(key = def (x): x[2])
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/joe.pinsonault%40gmail.com