Skip to content

Commit

Permalink
bpo-45393: help() on operator precedence has misleading entries (GH-3…
Browse files Browse the repository at this point in the history
…1246) (GH-92967)

(cherry picked from commit fb082c2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
  • Loading branch information
miss-islington and ZackerySpytz committed May 19, 2022
1 parent 3bc3c89 commit 9f7cdb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/reference/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,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 [#]_ |
+-----------------------------------------------+-------------------------------------+
Expand All @@ -1906,7 +1906,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 |
+-----------------------------------------------+-------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix the formatting for ``await x`` and ``not x`` in the operator precedence
table when using the :func:`help` system.

0 comments on commit 9f7cdb2

Please sign in to comment.