mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-45393: help() on operator precedence has misleading entries (GH-31246)
Fix the formatting for "await x" and "not x" in the operator precedence table.
This commit is contained in:
parent
97b9c1096f
commit
fb082c2fc5
2 changed files with 4 additions and 2 deletions
|
@ -1898,7 +1898,7 @@ precedence and have a left-to-right chaining feature as described in the
|
|||
| ``x[index]``, ``x[index:index]``, | Subscription, slicing, |
|
||||
| ``x(arguments...)``, ``x.attribute`` | call, attribute reference |
|
||||
+-----------------------------------------------+-------------------------------------+
|
||||
| :keyword:`await` ``x`` | Await expression |
|
||||
| :keyword:`await x <await>` | Await expression |
|
||||
+-----------------------------------------------+-------------------------------------+
|
||||
| ``**`` | Exponentiation [#]_ |
|
||||
+-----------------------------------------------+-------------------------------------+
|
||||
|
@ -1922,7 +1922,7 @@ precedence and have a left-to-right chaining feature as described in the
|
|||
| :keyword:`is`, :keyword:`is not`, ``<``, | tests and identity tests |
|
||||
| ``<=``, ``>``, ``>=``, ``!=``, ``==`` | |
|
||||
+-----------------------------------------------+-------------------------------------+
|
||||
| :keyword:`not` ``x`` | Boolean NOT |
|
||||
| :keyword:`not x <not>` | Boolean NOT |
|
||||
+-----------------------------------------------+-------------------------------------+
|
||||
| :keyword:`and` | Boolean AND |
|
||||
+-----------------------------------------------+-------------------------------------+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue