SF patch #751038 fixing SF bug#750092: exec doesn't need newline

Patch contributed by Steven Taschuk.
This commit is contained in:
Raymond Hettinger 2003-06-18 01:32:24 +00:00
parent be9715398b
commit 96a8233b64
1 changed files with 0 additions and 6 deletions

View File

@ -896,11 +896,5 @@ for use by \keyword{exec}.
\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}