mirror of https://github.com/python/cpython
SF patch #751038 fixing SF bug#750092: exec doesn't need newline
Patch contributed by Steven Taschuk.
This commit is contained in:
parent
be9715398b
commit
96a8233b64
|
@ -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}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue