mirror of
https://github.com/python/cpython.git
synced 2025-12-11 19:40:17 +00:00
Nits.
This commit is contained in:
parent
bccc64020e
commit
cc444e39e5
2 changed files with 16 additions and 8 deletions
|
|
@ -32,7 +32,7 @@ by the internal parser is required. For full information on the
|
||||||
language syntax, refer to the \emph{Python Language Reference}. The
|
language syntax, refer to the \emph{Python Language Reference}. The
|
||||||
parser itself is created from a grammar specification defined in the file
|
parser itself is created from a grammar specification defined in the file
|
||||||
\file{Grammar/Grammar} in the standard Python distribution. The parse
|
\file{Grammar/Grammar} in the standard Python distribution. The parse
|
||||||
trees stored in the ``AST objects'' created by this module are the
|
trees stored in the AST objects created by this module are the
|
||||||
actual output from the internal parser when created by the
|
actual output from the internal parser when created by the
|
||||||
\function{expr()} or \function{suite()} functions, described below. The AST
|
\function{expr()} or \function{suite()} functions, described below. The AST
|
||||||
objects created by \function{sequence2ast()} faithfully simulate those
|
objects created by \function{sequence2ast()} faithfully simulate those
|
||||||
|
|
@ -267,13 +267,17 @@ to the descriptions of each function for detailed information.
|
||||||
\subsection{AST Objects}
|
\subsection{AST Objects}
|
||||||
\label{AST Objects}
|
\label{AST Objects}
|
||||||
|
|
||||||
AST objects returned by \function{expr()}, \function{suite()}, and
|
AST objects returned by \function{expr()}, \function{suite()} and
|
||||||
\function{sequence2ast()} have no methods of their own.
|
\function{sequence2ast()} have no methods of their own.
|
||||||
Some of the functions defined which accept an AST object as their
|
Some of the functions defined which accept an AST object as their
|
||||||
first argument may change to object methods in the future. The type
|
first argument may change to object methods in the future.
|
||||||
of these objects is available as \code{ASTType} in the module.
|
|
||||||
|
\begin{datadesc}{ASTType}
|
||||||
|
The type of the objects returned by \function{expr()},
|
||||||
|
\function{suite()} and \function{sequence2ast()}.
|
||||||
|
|
||||||
Ordered and equality comparisons are supported between AST objects.
|
Ordered and equality comparisons are supported between AST objects.
|
||||||
|
\end{datadesc}
|
||||||
|
|
||||||
|
|
||||||
\subsection{Examples}
|
\subsection{Examples}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ by the internal parser is required. For full information on the
|
||||||
language syntax, refer to the \emph{Python Language Reference}. The
|
language syntax, refer to the \emph{Python Language Reference}. The
|
||||||
parser itself is created from a grammar specification defined in the file
|
parser itself is created from a grammar specification defined in the file
|
||||||
\file{Grammar/Grammar} in the standard Python distribution. The parse
|
\file{Grammar/Grammar} in the standard Python distribution. The parse
|
||||||
trees stored in the ``AST objects'' created by this module are the
|
trees stored in the AST objects created by this module are the
|
||||||
actual output from the internal parser when created by the
|
actual output from the internal parser when created by the
|
||||||
\function{expr()} or \function{suite()} functions, described below. The AST
|
\function{expr()} or \function{suite()} functions, described below. The AST
|
||||||
objects created by \function{sequence2ast()} faithfully simulate those
|
objects created by \function{sequence2ast()} faithfully simulate those
|
||||||
|
|
@ -267,13 +267,17 @@ to the descriptions of each function for detailed information.
|
||||||
\subsection{AST Objects}
|
\subsection{AST Objects}
|
||||||
\label{AST Objects}
|
\label{AST Objects}
|
||||||
|
|
||||||
AST objects returned by \function{expr()}, \function{suite()}, and
|
AST objects returned by \function{expr()}, \function{suite()} and
|
||||||
\function{sequence2ast()} have no methods of their own.
|
\function{sequence2ast()} have no methods of their own.
|
||||||
Some of the functions defined which accept an AST object as their
|
Some of the functions defined which accept an AST object as their
|
||||||
first argument may change to object methods in the future. The type
|
first argument may change to object methods in the future.
|
||||||
of these objects is available as \code{ASTType} in the module.
|
|
||||||
|
\begin{datadesc}{ASTType}
|
||||||
|
The type of the objects returned by \function{expr()},
|
||||||
|
\function{suite()} and \function{sequence2ast()}.
|
||||||
|
|
||||||
Ordered and equality comparisons are supported between AST objects.
|
Ordered and equality comparisons are supported between AST objects.
|
||||||
|
\end{datadesc}
|
||||||
|
|
||||||
|
|
||||||
\subsection{Examples}
|
\subsection{Examples}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue