[Python-checkins] CVS: python/dist/src/Doc/ref ref6.tex,1.24,1.25
Greg Ward
python-dev@python.org
2000年4月27日 14:32:05 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Doc/ref
In directory thrak:/scratch/python/doc/ref
Modified Files:
ref6.tex
Log Message:
Added a note to the section on 'exec' about the need for a trailing newline
in certain circumstances. (Apparently, this is a CPython problem.)
Index: ref6.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/ref/ref6.tex,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** ref6.tex 1999年04月14日 12:52:14 1.24
--- ref6.tex 2000年04月27日 18:32:02 1.25
***************
*** 228,232 ****
\end{itemize}
!
(In the current implementation, the syntax for targets is taken
to be the same as for expressions, and invalid syntax is rejected
--- 228,232 ----
\end{itemize}
!
(In the current implementation, the syntax for targets is taken
to be the same as for expressions, and invalid syntax is rejected
***************
*** 613,614 ****
--- 613,623 ----
\bifuncindex{globals}
\bifuncindex{locals}
+
+ Also, in the current implementation, multi-line compound statements must
+ end with a newline:
+ \code{exec "for v in seq:\e{}n\e{}tprint v\e{}n"} works, but
+ \code{exec "for v in seq:\e{}n\e{}tprint v"} fails with
+ \exception{SyntaxError}.
+ \exindex{SyntaxError}
+
+