]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF patch #751038 fixing SF bug#750092: exec doesn't need newline
authorRaymond Hettinger <python@rcn.com>
Wed, 18 Jun 2003 01:32:24 +0000 (01:32 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 18 Jun 2003 01:32:24 +0000 (01:32 +0000)
Patch contributed by Steven Taschuk.

Doc/ref/ref6.tex

index a078aa4cae7f36e9279a85cc67c3b32e4bb36060..c6ff655e5b5b095965b871739c3e9419cb878d44 100644 (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}