diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-08 19:00:09 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-08 19:00:09 (GMT) |
commit | a26e4b97d82f408b18ea0ba7cf8b61606f80f1a8 (patch) | |
tree | ca5c949935fe90e5f95a169b458b60bda10ef4d0 /Doc | |
parent | dea76376cb8fc2c255438e9708f492a25a5f2759 (diff) | |
parent | c7cc9850d49354e9e93601d649a3c2bf60f72df8 (diff) | |
download | cpython-a26e4b97d82f408b18ea0ba7cf8b61606f80f1a8.zip cpython-a26e4b97d82f408b18ea0ba7cf8b61606f80f1a8.tar.gz cpython-a26e4b97d82f408b18ea0ba7cf8b61606f80f1a8.tar.bz2 |
Issue #26156: Make expressions grammar description more semantically correct.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/reference/expressions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index dddedef..c3c3e06 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 |