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

Don't assign to in-built function in example #115

Closed jgreener64 closed 6 years ago

jgreener64 commented 6 years ago

Here we assign to the variable list, which goes against http://docs.quantifiedcode.com/python-anti-patterns/correctness/assigning_to_builtin.html.

In this example it doesn't break anything, but better to be safe than sorry?

adewes commented 6 years ago

Thanks @jgreener64 !