bpo-35224: Additional documentation for Assignment Expressions (GH-15935)

Add or update assignment expression documentation for:
- FAQ - Design
- Reference - Expressions
- Reference - Lexical Analysis


https://bugs.python.org/issue35224



Automerge-Triggered-By: @matrixise
This commit is contained in:
Emily Morehouse 2019-09-11 15:37:12 +01:00 committed by Miss Islington (bot)
parent 72c359912d
commit 6357c95716
4 changed files with 9 additions and 60 deletions

View file

@ -1784,6 +1784,8 @@ precedence and have a left-to-right chaining feature as described in the
+-----------------------------------------------+-------------------------------------+
| Operator | Description |
+===============================================+=====================================+
| ``:=`` | Assignment expression |
+-----------------------------------------------+-------------------------------------+
| :keyword:`lambda` | Lambda expression |
+-----------------------------------------------+-------------------------------------+
| :keyword:`if <if_expr>` -- :keyword:`!else` | Conditional expression |

View file

@ -887,7 +887,7 @@ The following tokens are operators:
+ - * ** / // % @
<< >> & | ^ ~
<< >> & | ^ ~ :=
< > <= >= == !=