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
244ad3ca
Commit
244ad3ca
authored
Sep 09, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Name the parameter to expr() and suite() "source" instead of "string".
parent
7f2c9d38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Doc/lib/libparser.tex
Doc/lib/libparser.tex
+6
-6
No files found.
Doc/lib/libparser.tex
View file @
244ad3ca
...
...
@@ -110,17 +110,17 @@ AST objects may be created from source code or from a parse tree.
When creating an AST object from source, different functions are used
to create the
\code
{
'eval'
}
and
\code
{
'exec'
}
forms.
\begin{funcdesc}
{
expr
}{
s
tring
}
The
\function
{
expr()
}
function parses the parameter
\var
{
s
tring
}
as if it were an input to
\samp
{
compile(
\var
{
s
tring
}
, 'eval')
}
. If
\begin{funcdesc}
{
expr
}{
s
ource
}
The
\function
{
expr()
}
function parses the parameter
\var
{
s
ource
}
as if it were an input to
\samp
{
compile(
\var
{
s
ource
}
, 'eval')
}
. If
the parse succeeds, an AST object is created to hold the internal
parse tree representation, otherwise an appropriate exception is
thrown.
\end{funcdesc}
\begin{funcdesc}
{
suite
}{
s
tring
}
The
\function
{
suite()
}
function parses the parameter
\var
{
s
tring
}
as if it were an input to
\samp
{
compile(
\var
{
s
tring
}
, 'exec')
}
. If
\begin{funcdesc}
{
suite
}{
s
ource
}
The
\function
{
suite()
}
function parses the parameter
\var
{
s
ource
}
as if it were an input to
\samp
{
compile(
\var
{
s
ource
}
, 'exec')
}
. If
the parse succeeds, an AST object is created to hold the internal
parse tree representation, otherwise an appropriate exception is
thrown.
...
...
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