diff --git a/peps/pep-0823.rst b/peps/pep-0823.rst index 78198a86f39..a1862b132ff 100644 --- a/peps/pep-0823.rst +++ b/peps/pep-0823.rst @@ -431,8 +431,8 @@ Assignments are not permitted and will raise a ``SyntaxError``. >>> a?.b.c.d = 1 File "", 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