Skip to content
Snippets Groups Projects
Unverified Commit 9f7cdb2c authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

bpo-45393: help() on operator precedence has misleading entries (GH-31246) (GH-92967)


(cherry picked from commit fb082c2f)

Co-authored-by: default avatarZackery Spytz <zspytz@gmail.com>
parent 3bc3c896
No related branches found
No related tags found
No related merge requests found
...@@ -1882,7 +1882,7 @@ precedence and have a left-to-right chaining feature as described in the ...@@ -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[index]``, ``x[index:index]``, | Subscription, slicing, |
| ``x(arguments...)``, ``x.attribute`` | call, attribute reference | | ``x(arguments...)``, ``x.attribute`` | call, attribute reference |
+-----------------------------------------------+-------------------------------------+ +-----------------------------------------------+-------------------------------------+
| :keyword:`await` ``x`` | Await expression | | :keyword:`await x <await>` | Await expression |
+-----------------------------------------------+-------------------------------------+ +-----------------------------------------------+-------------------------------------+
| ``**`` | Exponentiation [#]_ | | ``**`` | Exponentiation [#]_ |
+-----------------------------------------------+-------------------------------------+ +-----------------------------------------------+-------------------------------------+
...@@ -1906,7 +1906,7 @@ precedence and have a left-to-right chaining feature as described in the ...@@ -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:`is`, :keyword:`is not`, ``<``, | tests and identity tests |
| ``<=``, ``>``, ``>=``, ``!=``, ``==`` | | | ``<=``, ``>``, ``>=``, ``!=``, ``==`` | |
+-----------------------------------------------+-------------------------------------+ +-----------------------------------------------+-------------------------------------+
| :keyword:`not` ``x`` | Boolean NOT | | :keyword:`not x <not>` | Boolean NOT |
+-----------------------------------------------+-------------------------------------+ +-----------------------------------------------+-------------------------------------+
| :keyword:`and` | Boolean AND | | :keyword:`and` | Boolean AND |
+-----------------------------------------------+-------------------------------------+ +-----------------------------------------------+-------------------------------------+
......
Fix the formatting for ``await x`` and ``not x`` in the operator precedence
table when using the :func:`help` system.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment