summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-21 22:01:36 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-21 22:01:36 (GMT)
commitd68442b1642d769970a52c6d0f51b9039c1e7482 (patch)
treedcbf2617025fcbc2962cac8dca0d76f2fc31fcc7
parent0bb0a90b200ef40f812b70c2623c7062cd39f3b3 (diff)
downloadcpython-d68442b1642d769970a52c6d0f51b9039c1e7482.zip
cpython-d68442b1642d769970a52c6d0f51b9039c1e7482.tar.gz
cpython-d68442b1642d769970a52c6d0f51b9039c1e7482.tar.bz2
Lots of minor fixes, many suggested by Detlef Lannert
<lannert@uni-duesseldorf.de>.
-rw-r--r--Doc/ref/ref6.tex15
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex
index 5e77d2a..083fd68 100644
--- a/Doc/ref/ref6.tex
+++ b/Doc/ref/ref6.tex
@@ -266,11 +266,11 @@ target: identifier | "(" target_list ")" | "[" target_list "]"
(See section \ref{primaries} for the syntax definitions for the last
three symbols.)
-An augmented assignment evaluates the target (which, unlike with normal
-assignment statements, cannot be a tuple) and the expression list, performs
-the binary operation specific to the type of assignment on the two operands,
-and assigns the result to the original target. The target is only evaluated
-once.
+An augmented assignment evaluates the target (which, unlike normal
+assignment statements, cannot be an unpacking) and the expression
+list, performs the binary operation specific to the type of assignment
+on the two operands, and assigns the result to the original
+target. The target is only evaluated once.
An augmented assignment expression like \code{x += 1} can be rewritten as
\code{x = x + 1} to achieve a similar, but not exactly equal effect. In the
@@ -370,9 +370,10 @@ exception is raised.
\exindex{RuntimeError}
\keyword{print} also has an extended form, defined as
+\index{extended print statement}
\begin{verbatim}
-print_stmt: '>>' expression [ (',' expression)+ [','] ] )
+print_stmt: "print" ">>" expression [ ("," expression)+ [","] ]
\end{verbatim}
In this form, the first expression after the \keyword{>>} must
@@ -559,7 +560,7 @@ see below.
The \keyword{from} form does not bind the module name: it goes through the
list of identifiers, looks each one of them up in the module found in step
(1), and binds the name in the local namespace to the object thus found.
-Like with the first form of \keyword{import}, an alternate local name can be
+As with the first form of \keyword{import}, an alternate local name can be
supplied by specifying "\keyword{as} localname". If a name is not found,
\exception{ImportError} is raised. If the list of identifiers is replaced
by a star (\samp{*}), all names defined in the module are bound, except