quantifiedcode / python-anti-patterns

An open collection of Python anti-patterns and worst practices.
https://quantifiedcode.github.io/python-anti-patterns
Other
1.71k stars 249 forks source link

Single Letter Variables. #41

Closed ashelly closed 9 years ago

ashelly commented 9 years ago

The "Maintainablity" chapter warns against "Using single letter to name your variables", yet the "Not using dict comprehensions" example is d = {n: n * 2 for n in l}.

programmdesign commented 9 years ago

Thank @ashelly. Good point. Just fixed it.