mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Fix minor markup nits.
This commit is contained in:
parent
deda9f3420
commit
93852ef3c8
2 changed files with 2 additions and 6 deletions
|
|
@ -657,7 +657,7 @@ This statement supports dynamic execution of Python code. The first
|
||||||
expression should evaluate to either a string, an open file object, or
|
expression 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
|
a code object. If it is a string, the string is parsed as a suite of
|
||||||
Python statements which is then executed (unless a syntax error
|
Python statements which is then executed (unless a syntax error
|
||||||
occurs). If it is an open file, the file is parsed until EOF and
|
occurs). If it is an open file, the file is parsed until \EOF{} and
|
||||||
executed. If it is a code object, it is simply executed.
|
executed. If it is a code object, it is simply executed.
|
||||||
|
|
||||||
In all cases, if the optional parts are omitted, the code is executed
|
In all cases, if the optional parts are omitted, the code is executed
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ of the suite and goes back to testing the expression.
|
||||||
\indexii{loop}{statement}
|
\indexii{loop}{statement}
|
||||||
|
|
||||||
The \keyword{for} statement is used to iterate over the elements of a
|
The \keyword{for} statement is used to iterate over the elements of a
|
||||||
sequence (string, tuple or list):
|
sequence (such as a string, tuple or list) or other iterable object:
|
||||||
\obindex{sequence}
|
\obindex{sequence}
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
|
|
@ -353,10 +353,6 @@ positional parameters, defaulting to the empty tuple. If the form
|
||||||
dictionary receiving any excess keyword arguments, defaulting to a
|
dictionary receiving any excess keyword arguments, defaulting to a
|
||||||
new empty dictionary.
|
new empty dictionary.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
It is also possible to create anonymous functions (functions not bound
|
It is also possible to create anonymous functions (functions not bound
|
||||||
to a name), for immediate use in expressions. This uses lambda forms,
|
to a name), for immediate use in expressions. This uses lambda forms,
|
||||||
described in section \ref{lambda}. Note that the lambda form is
|
described in section \ref{lambda}. Note that the lambda form is
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue