]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-97913 Docs: Add walrus operator to the index (GH-97921)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 Oct 2022 07:01:27 +0000 (00:01 -0700)
committerPablo Galindo <pablogsal@gmail.com>
Sat, 22 Oct 2022 19:04:52 +0000 (20:04 +0100)
* 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>
(cherry picked from commit 296313002fde56f52d6c81f17d7ba5c2eb57d098)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/reference/expressions.rst

index 6bf21a7dde49a0a4a9ef68244f87e662213835c3..8ed520d35c97ae0778dd01cdee59bf1e4bee7e43 100644 (file)
@@ -1720,6 +1720,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
 ======================