News for hackers. Stuff that matters.
Re:PEP 308 and why I still hate Python by userbinator on Thursday March 09, 2017 @09:55PM (#13835958)
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.)

There are no comments on this comment yet.