From: Serhiy Storchaka Date: Sun, 8 May 2016 18:59:46 +0000 (+0300) Subject: Issue #26156: Make expressions grammar description more semantically correct. X-Git-Tag: v3.6.0a1~54^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7cc9850d49354e9e93601d649a3c2bf60f72df8;p=python Issue #26156: Make expressions grammar description more semantically correct. --- diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index dddedef815..c3c3e06599 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -821,7 +821,7 @@ Suspend the execution of :term:`coroutine` on an :term:`awaitable` object. Can only be used inside a :term:`coroutine function`. .. productionlist:: - await: ["await"] `primary` + await_expr: "await" `primary` .. versionadded:: 3.5 @@ -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: .. productionlist:: - power: `await` ["**" `u_expr`] + power: ( `await_expr` | `primary` ) ["**" `u_expr`] 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