[issue39176] Syntax error message uses strange term: "named assignment"

2019-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 6c004955aceb8a0cd8e14afbc608ebfdf7c8aa4a by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-39176: Improve error message for 'named assignment' (GH-1) (GH-17778) https://github.com/python/cpython/commit/6c004955aceb8a0cd8e14

[issue39176] Syntax error message uses strange term: "named assignment"

2019-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. -- components: +Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.8, Python 3.9 ___ Python tracker

[issue39176] Syntax error message uses strange term: "named assignment"

2019-12-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +17211 pull_request: https://github.com/python/cpython/pull/17778 ___ Python tracker ___ __

[issue39176] Syntax error message uses strange term: "named assignment"

2019-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 37143a8e3b2e9245d52f4ddebbdd1c6121c96884 by Raymond Hettinger (Ned Batchelder) in branch 'master': bpo-39176: Improve error message for 'named assignment' (GH-1) https://github.com/python/cpython/commit/37143a8e3b2e9245d52f4ddebbdd1c6121c

[issue39176] Syntax error message uses strange term: "named assignment"

2019-12-31 Thread Ned Batchelder
Change by Ned Batchelder : -- keywords: +patch pull_requests: +17210 stage: -> patch review pull_request: https://github.com/python/cpython/pull/1 ___ Python tracker ___ _

[issue39176] Syntax error message uses strange term: "named assignment"

2019-12-31 Thread Ned Batchelder
New submission from Ned Batchelder : I know this is not allowed: >>> ((a, b, c) := (1, 2, 3)) File "", line 1 SyntaxError: cannot use named assignment with tuple But what is "named assignment", and why is this SyntaxError talking about it? Shouldn't it say "cannot use assignment expressio