brython-dev / brython

Brython (Browser Python) is an implementation of Python 3 running in the browser
BSD 3-Clause "New" or "Revised" License
6.39k stars 511 forks source link

Weird syntax error involving walrus operator #1501

Closed cool-RR closed 4 years ago

cool-RR commented 4 years ago

Brython shell:

>>> (a := b).c = d
  File <string>, line 1
    (a := b).c = d
            ^
SyntaxError: invalid syntax
>>> 

This syntax works fine on CPython 3.8.1 on Windows. Why does it produce a SyntaxError here?

cool-RR commented 4 years ago

Thank you!