Skip to content

Commit 9f7cdb2

Browse files
bpo-45393: help() on operator precedence has misleading entries (GH-31246) (GH-92967)
(cherry picked from commit fb082c2) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 3bc3c89 commit 9f7cdb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Doc/reference/expressions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ precedence and have a left-to-right chaining feature as described in the
18821882
| ``x[index]``, ``x[index:index]``, | Subscription, slicing, |
18831883
| ``x(arguments...)``, ``x.attribute`` | call, attribute reference |
18841884
+-----------------------------------------------+-------------------------------------+
1885-
| :keyword:`await` ``x`` | Await expression |
1885+
| :keyword:`await x <await>` | Await expression |
18861886
+-----------------------------------------------+-------------------------------------+
18871887
| ``**`` | Exponentiation [#]_ |
18881888
+-----------------------------------------------+-------------------------------------+
@@ -1906,7 +1906,7 @@ precedence and have a left-to-right chaining feature as described in the
19061906
| :keyword:`is`, :keyword:`is not`, ``<``, | tests and identity tests |
19071907
| ``<=``, ``>``, ``>=``, ``!=``, ``==`` | |
19081908
+-----------------------------------------------+-------------------------------------+
1909-
| :keyword:`not` ``x`` | Boolean NOT |
1909+
| :keyword:`not x <not>` | Boolean NOT |
19101910
+-----------------------------------------------+-------------------------------------+
19111911
| :keyword:`and` | Boolean AND |
19121912
+-----------------------------------------------+-------------------------------------+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix the formatting for ``await x`` and ``not x`` in the operator precedence
2+
table when using the :func:`help` system.

0 commit comments

Comments
 (0)