mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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
1 changed files with 0 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue