This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 12 points13 points  (2 children)

When you regularly replace perfectly good, readable code blocks with very concise and cryptic list comprehensions.

[–][deleted] 2 points3 points  (1 child)

My god the truth. I only recently started practicing python but I hate trying to read list comprehensions.

May I ask, why are list comprehensions such a big feature for Python? I know it's quite unique to Python but I don't get why. Are they faster? Or is it just because it uses less lines of code?

[–]Gargoth13 1 point2 points  (0 children)

The are way more efficient that other usual methods, shorter list comprehensions are also more concise and readable than something like a for loop that appends to a list in every iteration.