gh-97913 Docs: Add walrus operator to the index (GH-97921)

* 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 296313002f)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-10-08 00:01:27 -07:00 committed by GitHub
parent b5196faff3
commit 9828ccb63b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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