3 ms·
Instead of asking "what is awful about X", how about considering "what would make it better"? I think this would be easier to read, given that what's inside th
by userbinator 10y ago
Instead of asking "what is awful about X", how about considering "what would make it better"?
I think this would be easier to read, given that what's inside the [] now looks almost exactly like the equivalent code without using a list comprehension:
foo = [for bar in baz.list() if condition(bar) transform(bar)]
(Disclaimer: I am not a regular Python user. Maybe that ordering conflicts with a syntax for something else.)