mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
bpo-45393: help() on operator precedence has misleading entries (GH-31246) (GH-92965)
(cherry picked from commit fb082c2fc5
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
54653b5005
commit
4d1e243fca
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 |
|
||||
+-----------------------------------------------+-------------------------------------+
|
||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue