diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-08 07:03:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-08 07:03:33 (GMT) |
commit | a2ce21f763c03dc36a28ee3e4d8808eb3928075f (patch) | |
tree | c3815a5fa9b25a72e477867536b5af6f6eb72396 /Doc/reference | |
parent | 786fde5d70ca18cc93fe2b4197f05bcae2bdc908 (diff) | |
download | cpython-a2ce21f763c03dc36a28ee3e4d8808eb3928075f.zip cpython-a2ce21f763c03dc36a28ee3e4d8808eb3928075f.tar.gz cpython-a2ce21f763c03dc36a28ee3e4d8808eb3928075f.tar.bz2 |
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 296313002fde56f52d6c81f17d7ba5c2eb57d098)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/expressions.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 1e76b25..31cdc5c 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -1723,6 +1723,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 ====================== |