]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-97913 Docs: Add walrus operator to the index (#97921)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Sat, 8 Oct 2022 06:54:16 +0000 (23:54 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Oct 2022 06:54:16 +0000 (08:54 +0200)
* Add walrus operator to the index

* Add named expression to the index

Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
* Fix indentation and add missing newline

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Doc/reference/expressions.rst

index 11f49a8c33dc88099eec7ba07738e44ef18b5e21..28c17566009fbdc68450cb6b1a5d3a7b45d30d59 100644 (file)
@@ -1741,6 +1741,12 @@ returns a boolean value regardless of the type of its argument
 (for example, ``not 'foo'`` produces ``False`` rather than ``''``.)
 
 
+.. index::
+   single: := (colon equals)
+   single: assignment expression
+   single: walrus operator
+   single: named expression
+
 Assignment expressions
 ======================