News for hackers. Stuff that matters.
Re:Google's Python style guide by RyanMcGreal on Thursday April 19, 2012 @10:29AM (#3863145)
I didn't like list comprehensions when I first encountered them, but after getting accustomed to them, I now strongly prefer to write and read a comprehension over a for-in loop.
Re:Google's Python style guide by ironchef on Thursday April 19, 2012 @03:12PM (#3864620)
I agree, but it depends on how complex the operation within the comprehension is.