mirror of https://github.com/python/cpython
Name the parameter to expr() and suite() "source" instead of "string".
This commit is contained in:
parent
7f2c9d3890
commit
244ad3ca15
|
@ -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
|
When creating an AST object from source, different functions are used
|
||||||
to create the \code{'eval'} and \code{'exec'} forms.
|
to create the \code{'eval'} and \code{'exec'} forms.
|
||||||
|
|
||||||
\begin{funcdesc}{expr}{string}
|
\begin{funcdesc}{expr}{source}
|
||||||
The \function{expr()} function parses the parameter \var{string}
|
The \function{expr()} function parses the parameter \var{source}
|
||||||
as if it were an input to \samp{compile(\var{string}, 'eval')}. If
|
as if it were an input to \samp{compile(\var{source}, 'eval')}. If
|
||||||
the parse succeeds, an AST object is created to hold the internal
|
the parse succeeds, an AST object is created to hold the internal
|
||||||
parse tree representation, otherwise an appropriate exception is
|
parse tree representation, otherwise an appropriate exception is
|
||||||
thrown.
|
thrown.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{suite}{string}
|
\begin{funcdesc}{suite}{source}
|
||||||
The \function{suite()} function parses the parameter \var{string}
|
The \function{suite()} function parses the parameter \var{source}
|
||||||
as if it were an input to \samp{compile(\var{string}, 'exec')}. If
|
as if it were an input to \samp{compile(\var{source}, 'exec')}. If
|
||||||
the parse succeeds, an AST object is created to hold the internal
|
the parse succeeds, an AST object is created to hold the internal
|
||||||
parse tree representation, otherwise an appropriate exception is
|
parse tree representation, otherwise an appropriate exception is
|
||||||
thrown.
|
thrown.
|
||||||
|
|
Loading…
Reference in New Issue