KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In python 2.6: [x() for x in [lambda: m for m in [1,2,3]]] results in: [3, 3, 3] I would expect the output to be [1, 2, 3]. I get the exact same problem even with a non list comprehension approach. And even after I copy m into a different variable. What am I missing?
Tags (comma-separated)
Save Edits
Cancel