MRAB: > >>> sorted(range(9), def key(n): n % 3) I am fine with the current lambda syntax, but another possibility: sorted(range(9), n => n % 3)
Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list
MRAB: > >>> sorted(range(9), def key(n): n % 3) I am fine with the current lambda syntax, but another possibility: sorted(range(9), n => n % 3)
Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list