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

Fix multiple assignment example #12

Closed gvx closed 9 years ago

gvx commented 9 years ago

I still would prefer the "anti-pattern" version, but at least now both code snippets are functionally equivalent.

(Before, in the latter example (x, y, z) == (4, -2, 3).)

adewes commented 9 years ago

thanks @gvx! There was another PR with a more concise example, so we took out the original one entirely. Feel free to have a look at it and comment / make modifications!