diff options
author | Emily Morehouse <emily@cuttlesoft.com> | 2019-09-11 14:37:12 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-11 14:37:12 (GMT) |
commit | 6357c95716d89ac1f80587fbc4133df8d2e8396c (patch) | |
tree | a1881762e3dae76cd14c2bc1ddbbdae5ec4ecef9 /Doc/reference | |
parent | 72c359912d36705a94fca8b63d80451905a14ae4 (diff) | |
download | cpython-6357c95716d89ac1f80587fbc4133df8d2e8396c.zip cpython-6357c95716d89ac1f80587fbc4133df8d2e8396c.tar.gz cpython-6357c95716d89ac1f80587fbc4133df8d2e8396c.tar.bz2 |
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
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/expressions.rst | 2 | ||||
-rw-r--r-- | Doc/reference/lexical_analysis.rst | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 73a2f27..d9db33a 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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 | diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index 7e1e17e..c0e13b5 100644 --- a/Doc/reference/lexical_analysis.rst +++ b/Doc/reference/lexical_analysis.rst @@ -887,7 +887,7 @@ The following tokens are operators: + - * ** / // % @ - << >> & | ^ ~ + << >> & | ^ ~ := < > <= >= == != |