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

Skip to content

Commit 4d1e243

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

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
@@ -1898,7 +1898,7 @@ precedence and have a left-to-right chaining feature as described in the
18981898
| ``x[index]``, ``x[index:index]``, | Subscription, slicing, |
18991899
| ``x(arguments...)``, ``x.attribute`` | call, attribute reference |
19001900
+-----------------------------------------------+-------------------------------------+
1901-
| :keyword:`await` ``x`` | Await expression |
1901+
| :keyword:`await x <await>` | Await expression |
19021902
+-----------------------------------------------+-------------------------------------+
19031903
| ``**`` | Exponentiation [#]_ |
19041904
+-----------------------------------------------+-------------------------------------+
@@ -1922,7 +1922,7 @@ precedence and have a left-to-right chaining feature as described in the
19221922
| :keyword:`is`, :keyword:`is not`, ``<``, | tests and identity tests |
19231923
| ``<=``, ``>``, ``>=``, ``!=``, ``==`` | |
19241924
+-----------------------------------------------+-------------------------------------+
1925-
| :keyword:`not` ``x`` | Boolean NOT |
1925+
| :keyword:`not x <not>` | Boolean NOT |
19261926
+-----------------------------------------------+-------------------------------------+
19271927
| :keyword:`and` | Boolean AND |
19281928
+-----------------------------------------------+-------------------------------------+
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