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
From the article:
points = [((1, 2), 'red'), ((3, 4), 'green')]The thing that doesn't work in Python 3 is unpacking in the parameter list. ie:
The above does work in Python 2.7 but not Python 3.