[issue42295] Error should be flagged if Walrus operator is used for multiple assigment

2020-11-09 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42295] Error should be flagged if Walrus operator is used for multiple assigment

2020-11-09 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Due to the precedence of the walrus operator, it is not actually a multiple assignment but rather a tuple of 3 elements with one being the value of the assignment expression. $ python -m ast (a, b := 3, 4) Module( body=[ Expr(

[issue42295] Error should be flagged if Walrus operator is used for multiple assigment

2020-11-09 Thread John Zalewski
New submission from John Zalewski : #The 'Walrus' operator does not support multiple assignment but does not #flag an attempt to make a multiple assigment as an error #This results in unexpected behavior at execution time: a, b = 100, 200 print (a, b) #result is #100 200 if (a, b := 3, 4):