Commit 96a8233b authored by Raymond Hettinger's avatar Raymond Hettinger

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

Patch contributed by Steven Taschuk.
parent be971539
...@@ -896,11 +896,5 @@ for use by \keyword{exec}. ...@@ -896,11 +896,5 @@ for use by \keyword{exec}.
\bifuncindex{globals} \bifuncindex{globals}
\bifuncindex{locals} \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}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment