mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
72c359912d
commit
6357c95716
4 changed files with 9 additions and 60 deletions
|
@ -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 |
|
||||
|
|
|
@ -887,7 +887,7 @@ The following tokens are operators:
|
|||
|
||||
|
||||
+ - * ** / // % @
|
||||
<< >> & | ^ ~
|
||||
<< >> & | ^ ~ :=
|
||||
< > <= >= == !=
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue