Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chain assignment order is invalid #45

Open
gggrafff opened this issue Nov 13, 2023 · 0 comments
Open

Chain assignment order is invalid #45

gggrafff opened this issue Nov 13, 2023 · 0 comments

Comments

@gggrafff
Copy link

Hello!

https://github.com/jprzywoski/python-reference/blob/master/source/docs/operators/assignment.rst#example-2

We have description "First the integer 10 is assigned to the variable c, then the value of c (10) is assigned to b and b is assigned to a" for a = b = c = 10 expression.
The right order: "assigns the single resulting object to each of the target lists, from left to right" (https://docs.python.org/3/reference/simple_stmts.html#assignment-statements)

Have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant