mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Update to use the notice environment so a multi-paragraph note can be
appropriately marked.
This commit is contained in:
parent
75401a0214
commit
08d752cf28
1 changed files with 4 additions and 2 deletions
|
@ -482,14 +482,16 @@ difficulty is that there's no guarantee the generator will ever be
|
||||||
resumed, hence no guarantee that the \keyword{finally} block will ever
|
resumed, hence no guarantee that the \keyword{finally} block will ever
|
||||||
get executed.
|
get executed.
|
||||||
|
|
||||||
\note{In Python 2.2, the \keyword{yield} statement is only allowed
|
\begin{notice}
|
||||||
|
In Python 2.2, the \keyword{yield} statement is only allowed
|
||||||
when the \code{generators} feature has been enabled. It will always
|
when the \code{generators} feature has been enabled. It will always
|
||||||
be enabled in Python 2.3. This \code{__future__} import statment can
|
be enabled in Python 2.3. This \code{__future__} import statment can
|
||||||
be used to enable the feature:}
|
be used to enable the feature:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
from __future__ import generators
|
from __future__ import generators
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
\end{notice}
|
||||||
|
|
||||||
|
|
||||||
\begin{seealso}
|
\begin{seealso}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue