# Walrus SyntaxErrors: 'x:=1' invalid syntax; (a.b:=1) 'cannot use assignment expressions with attribute' (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/walrus-syntaxerrors-x-1-invalid-syntax-a-b-1-cannot-use-assignment-expressions-with-attribute-python-a2ce36b05dcc
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, syntaxerror, walrus

compile of unparenthesised x:=1 -> 'invalid syntax'; (a.b:=1) -> 'cannot use assignment expressions with attribute'.
