Skip to content

Commit c7cc985

Browse files
Issue #26156: Make expressions grammar description more semantically correct.
1 parent e3f1b09 commit c7cc985

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/reference/expressions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ Suspend the execution of :term:`coroutine` on an :term:`awaitable` object.
821821
Can only be used inside a :term:`coroutine function`.
822822

823823
.. productionlist::
824-
await: ["await"] `primary`
824+
await_expr: "await" `primary`
825825

826826
.. versionadded:: 3.5
827827

@@ -835,7 +835,7 @@ The power operator binds more tightly than unary operators on its left; it binds
835835
less tightly than unary operators on its right. The syntax is:
836836

837837
.. productionlist::
838-
power: `await` ["**" `u_expr`]
838+
power: ( `await_expr` | `primary` ) ["**" `u_expr`]
839839

840840
Thus, in an unparenthesized sequence of power and unary operators, the operators
841841
are evaluated from right to left (this does not constrain the evaluation order

0 commit comments

Comments
 (0)