Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions peps/pep-0823.rst
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ Assignments are not permitted and will raise a ``SyntaxError``.
>>> a?.b.c.d = 1
File "<python-input-1>", line 1
a?.b.c.d = 1
^^^^^^^^
SyntaxError: cannot assign to attribute here. Maybe you meant '==' instead of '='?
^^^^
SyntaxError: cannot assign to none-aware expression

This does not apply if the ``None``-aware expressions is only part
of a larger expression and evaluated on its own, for example as a
Expand Down
Loading