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

Updated to include case of single element list #118

Closed SyraD closed 4 years ago

SyraD commented 5 years ago

Indexing[0] to extract an element nested in a list occurs frequently in code handling JSON and is an extension of this anti-pattern