10000 [Doc] Add versionchanged mark in walrus operator citation on tutorial… · adorilson/cpython@9bbea64 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bbea64

Browse files
committed
[Doc] Add versionchanged mark in walrus operator citation on tutorial/datastructures
1 parent edb172a commit 9bbea64

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/tutorial/datastructures.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -675,10 +675,11 @@ to a variable. For example, ::
675675
>>> non_null
676676
'Trondheim'
677677

678-
Note that in Python, unlike C, assignment inside expressions must be done
679-
explicitly with the walrus operator ``:=``. This avoids a common class of
680-
problems encountered in C programs: typing ``=`` in an expression when ``==``
681-
was intended.
678+
.. versionchanged:: 3.8
679+
Note that in Python, unlike C, assignment inside expressions must be done
680+
explicitly with the walrus operator ``:=``. This avoids a common class of
681+
problems encountered in C programs: typing ``=`` in an expression when ``==``
682+
was intended.
682683

683684

684685
.. _tut-comparing:

0 commit comments

Comments
 (0)
0