DEV Community

Discussion on: The Proficient Pythonista: List Comprehensions

Collapse
 
mburszley profile image
Maximilian Burszley

It's not about consistency, it's about use-case. A list, tuple and set all solve different problems. Comprehensions should always be simple, otherwise you should be using a different construct that is readable.

Yes, you should use a linter, but almost any editor nowadays will catch the errors you point out and are not necessarily linting issues.