Commit c7cc9850 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #26156: Make expressions grammar description more semantically correct.

parent e3f1b091
...@@ -821,7 +821,7 @@ Suspend the execution of :term:`coroutine` on an :term:`awaitable` object. ...@@ -821,7 +821,7 @@ Suspend the execution of :term:`coroutine` on an :term:`awaitable` object.
Can only be used inside a :term:`coroutine function`. Can only be used inside a :term:`coroutine function`.
.. productionlist:: .. productionlist::
await: ["await"] `primary` await_expr: "await" `primary`
.. versionadded:: 3.5 .. versionadded:: 3.5
...@@ -835,7 +835,7 @@ The power operator binds more tightly than unary operators on its left; it binds ...@@ -835,7 +835,7 @@ The power operator binds more tightly than unary operators on its left; it binds
less tightly than unary operators on its right. The syntax is: less tightly than unary operators on its right. The syntax is:
.. productionlist:: .. productionlist::
power: `await` ["**" `u_expr`] power: ( `await_expr` | `primary` ) ["**" `u_expr`]
Thus, in an unparenthesized sequence of power and unary operators, the operators Thus, in an unparenthesized sequence of power and unary operators, the operators
are evaluated from right to left (this does not constrain the evaluation order are evaluated from right to left (this does not constrain the evaluation order
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment