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
beef207a
Commit
beef207a
authored
Nov 08, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile can also produce AST
parent
da06606b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/library/functions.rst
Doc/library/functions.rst
+4
-4
No files found.
Doc/library/functions.rst
View file @
beef207a
...
...
@@ -199,11 +199,11 @@ are always available. They are listed here in alphabetical order.
..
function
::
compile
(
source
,
filename
,
mode
[,
flags
[,
dont_inherit
]])
Compile
the
*
source
*
into
a
code
object
.
Code
objects
can
be
Compile
the
*
source
*
into
a
code
object
or
AST
object
.
Code
objects
can
be
executed
by
a
call
to
:
func
:`
exec
`
or
evaluated
by
a
call
to
:
func
:`
eval
`.
*
source
*
can
either
be
a
string
or
an
AST
object
.
Refer
to
the
:
mod
:`
_ast
`
module
documentation
for
information
on
how
to
compile
into
and
from
AST
objects
.
:
func
:`
eval
`.
*
source
*
can
either
be
a
string
or
an
AST
object
.
Refer
to
the
:
mod
:`
_ast
`
module
documentation
for
information
on
how
to
compile
into
and
from
AST
objects
.
The
*
filename
*
argument
should
give
the
file
from
which
the
code
was
read
;
pass
some
recognizable
value
if
it
wasn
't
...
...
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