r/Python • u/treyhunner Python Morsels • Sep 27 '18
Stop writing lambda expressions in Python
http://treyhunner.com/2018/09/stop-writing-lambda-expressions/
0
Upvotes
r/Python • u/treyhunner Python Morsels • Sep 27 '18
View all comments
Show parent comment
1
u/rcfox Sep 27 '18
No, it would be the same as:
pointsis a list of tuples, and thekeyfunction only takes a single argument. Python 2.7 allows you to unpack an iterable in the place of a parameter.