Skip to content

Commit 322e0a4

Browse files
authored
PEP 823: Update error message in example (#5219)
1 parent 16991a9 commit 322e0a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎peps/pep-0823.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ Assignments are not permitted and will raise a ``SyntaxError``.
431431
>>> a?.b.c.d = 1
432432
File "<python-input-1>", line 1
433433
a?.b.c.d = 1
434-
^^^^^^^^
435-
SyntaxError: cannot assign to attribute here. Maybe you meant '==' instead of '='?
434+
^^^^
435+
SyntaxError: cannot assign to none-aware expression
436436
437437
This does not apply if the ``None``-aware expressions is only part
438438
of a larger expression and evaluated on its own, for example as a

0 commit comments

Comments
 (0)