8000 bpo-45393: help() on operator precedence has misleading entries (GH-3… · python/cpython@fb566ca · GitHub
[go: up one dir, main page]

Skip to content

Commit fb566ca

Browse files
bpo-45393: help() on operator precedence has misleading entries (GH-31246) (GH-92966)
(cherry picked from commit fb082c2) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent 4e289e2 commit fb566ca

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
@@ -1891,7 +1891,7 @@ precedence and have a left-to-right chaining feature as described in the
18911891
| ``x[index]``, ``x[index:index]``, | Subscription, slicing, |
18921892
| ``x(arguments...)``, ``x.attribute`` | call, attribute reference |
18931893
+-----------------------------------------------+-------------------------------------+
1894-
| :keyword:`await` ``x`` | Await expression |
1894+
| :keyword:`await x <await>` | Await expression |
18951895
+-----------------------------------------------+-------------------------------------+
18961896
| ``**`` | Exponentiation [#]_ |
18971897
+-----------------------------------------------+-------------------------------------+
@@ -1915,7 +1915,7 @@ precedence and have a left-to-right chaining feature as described in the
19151915
| :keyword:`is`, :keyword:`is not`, ``<``, | tests and identity tests |
19161916
| ``<=``, ``>``, ``>=``, ``!=``, ``==`` | |
19171917
+-----------------------------------------------+-------------------------------------+
1918-
| :keyword:`not` ``x`` | Boolean NOT |
1918+
| :keyword:`not x <not>` | Boolean NOT |
19191919
+-----------------------------------------------+-------------------------------------+
19201920
| :keyword:`and` | Boolean AND |
19211921
+-----------------------------------------------+-------------------------------------+
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)
0