8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
:=
1 parent edf9e8e commit cf028b5Copy full SHA for cf028b5
Doc/tutorial/datastructures.rst
@@ -675,10 +675,10 @@ to a variable. For example, ::
675
>>> non_null
676
'Trondheim'
677
678
-Note that in Python, unlike C, assignment cannot occur inside expressions. C
679
-programmers may grumble about this, but it avoids a common class of problems
680
-encountered in C programs: typing ``=`` in an expression when ``==`` was
681
-intended.
+Note that in Python, unlike C, assignment inside expressions must be done
+explicitly with the walrus operator ``:=``. This avoids a common class of
+problems encountered in C programs: typing ``=`` in an expression when ``==``
+was intended.
682
683
684
.. _tut-comparing:
0 commit comments