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

Use `extend()` for list concatenation triggers when adding at the beginning of list #86

Open ajmarks opened 8 years ago

ajmarks commented 8 years ago

This antipattern triggers in places where .extend() would yield a different result, for example mylist = [1, 2, 3] + mylist.