summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2004-08-31 10:07:13 +0000
committerAnthony Baxter <anthonybaxter@gmail.com>2004-08-31 10:07:13 +0000
commita8b991638ed665c57d0f396e52c43c5a99395dfd (patch)
tree6606105154a6c7f2b056852be07a513a0f4a0b33 /Doc
parent50dfa387953861405bf450a5f6461c0c48c46c0f (diff)
downloadcpython-a8b991638ed665c57d0f396e52c43c5a99395dfd.tar.gz
SF patch #1007189, multi-line imports, for instance:
"from blah import (foo, bar baz, bongo)"
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ref/ref6.tex7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex
index 1017acaa47..e74a7dded0 100644
--- a/Doc/ref/ref6.tex
+++ b/Doc/ref/ref6.tex
@@ -623,6 +623,9 @@ It continues with the next cycle of the nearest enclosing loop.
\productioncont{| "from" \token{module} "import" \token{identifier}
["as" \token{name}]}
\productioncont{ ( "," \token{identifier} ["as" \token{name}] )*}
+ \productioncont{| "from" \token{module} "import" "(" \token{identifier}
+ ["as" \token{name}]}
+ \productioncont{ ( "," \token{identifier} ["as" \token{name}] )* [","] ")"}
\productioncont{| "from" \token{module} "import" "*"}
\production{module}
{(\token{identifier} ".")* \token{identifier}}
@@ -744,8 +747,8 @@ before the release in which the feature becomes standard.
\begin{productionlist}[*]
\production{future_statement}
- {"from" "__future__" "import" feature ["as" name]}
- \productioncont{("," feature ["as" name])*}
+ {"from" "__future__" "import" feature ["as" name] ("," feature ["as" name])*}
+ \productioncont{| "from" "__future__" "import" "(" feature ["as" name] ("," feature ["as" name])* [","] ")"}
\production{feature}{identifier}
\production{name}{identifier}
\end{productionlist}