mirror of https://github.com/python/cpython
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
|
@ -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 |
|
||||
+-----------------------------------------------+-------------------------------------+
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Fix the formatting for ``await x`` and ``not x`` in the operator precedence
|
||||
table when using the :func:`help` system.
|
Loading…
Reference in New Issue