Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
268d85d1
Commit
268d85d1
authored
Mar 31, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#992207: document that the parser only accepts \\n newlines.
parent
2839985c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Doc/reference/simple_stmts.rst
Doc/reference/simple_stmts.rst
+6
-1
No files found.
Doc/reference/simple_stmts.rst
View file @
268d85d1
...
@@ -966,7 +966,7 @@ The :keyword:`exec` statement
...
@@ -966,7 +966,7 @@ The :keyword:`exec` statement
This
statement
supports
dynamic
execution
of
Python
code
.
The
first
expression
This
statement
supports
dynamic
execution
of
Python
code
.
The
first
expression
should
evaluate
to
either
a
string
,
an
open
file
object
,
or
a
code
object
.
If
should
evaluate
to
either
a
string
,
an
open
file
object
,
or
a
code
object
.
If
it
is
a
string
,
the
string
is
parsed
as
a
suite
of
Python
statements
which
is
it
is
a
string
,
the
string
is
parsed
as
a
suite
of
Python
statements
which
is
then
executed
(
unless
a
syntax
error
occurs
).
If
it
is
an
open
file
,
the
file
then
executed
(
unless
a
syntax
error
occurs
).
[#]
_
If
it
is
an
open
file
,
the
file
is
parsed
until
EOF
and
executed
.
If
it
is
a
code
object
,
it
is
simply
is
parsed
until
EOF
and
executed
.
If
it
is
a
code
object
,
it
is
simply
executed
.
In
all
cases
,
the
code
that
's executed is expected to be valid as
executed
.
In
all
cases
,
the
code
that
's executed is expected to be valid as
file input (see section :ref:`file-input`). Be aware that the
file input (see section :ref:`file-input`). Be aware that the
...
@@ -1004,3 +1004,8 @@ built-in function :func:`eval`. The built-in functions :func:`globals` and
...
@@ -1004,3 +1004,8 @@ built-in function :func:`eval`. The built-in functions :func:`globals` and
which
may
be
useful
to
pass
around
for
use
by
:
keyword
:`
exec
`.
which
may
be
useful
to
pass
around
for
use
by
:
keyword
:`
exec
`.
..
rubric
::
Footnotes
..
[#]
Note
that
the
parser
only
accepts
the
Unix
-
style
end
of
line
convention
.
If
you
are
reading
the
code
from
a
file
,
make
sure
to
use
universal
newline
mode
to
convert
Windows
or
Mac
-
style
newlines
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment