[Python-checkins] cpython (3.5): Issue #26156: Make expressions grammar description more semantically correct.

serhiy.storchaka python-checkins at python.org
Sun May 8 15:00:26 EDT 2016


https://hg.python.org/cpython/rev/e876ff4e9e95
changeset:   101273:e876ff4e9e95
branch:      3.5
parent:      101271:cd25508c62fc
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun May 08 21:59:46 2016 +0300
summary:
  Issue #26156: Make expressions grammar description more semantically correct.

files:
  Doc/reference/expressions.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -821,7 +821,7 @@
 Can only be used inside a :term:`coroutine function`.
 
 .. productionlist::
-   await: ["await"] `primary`
+   await_expr: "await" `primary`
 
 .. versionadded:: 3.5
 
@@ -835,7 +835,7 @@
 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list