diff options
author | Georg Brandl <georg@python.org> | 2006-04-30 19:34:19 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-04-30 19:34:19 (GMT) |
commit | 3c1983face14853d28f903e54228551c367c640e (patch) | |
tree | dc9f2068ada9ab88db790281109269cc4c69f57f /Doc/ref/ref7.tex | |
parent | 3583cff5a9d55b9c1bc17b5d82670e5e6b0fc10d (diff) | |
download | cpython-3c1983face14853d28f903e54228551c367c640e.zip cpython-3c1983face14853d28f903e54228551c367c640e.tar.gz cpython-3c1983face14853d28f903e54228551c367c640e.tar.bz2 |
Patch #1479438: add \keyword markup for "with".
Diffstat (limited to 'Doc/ref/ref7.tex')
-rw-r--r-- | Doc/ref/ref7.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex index 180e22f..4453e87 100644 --- a/Doc/ref/ref7.tex +++ b/Doc/ref/ref7.tex @@ -315,7 +315,7 @@ statement to generate exceptions may be found in section~\ref{raise}. \versionadded{2.5} The \keyword{with} statement is used to wrap the execution of a block -with methods defined by a context manager or with statement context +with methods defined by a context manager or \keyword{with} statement context object (see section~\ref{context-managers}). This allows common \keyword{try}...\keyword{except}...\keyword{finally} usage patterns to be encapsulated for convenient reuse. @@ -332,7 +332,7 @@ The execution of the \keyword{with} statement proceeds as follows: \item The context expression is evaluated, to obtain a context manager. \item The context manger's \method{__context__()} method is -invoked to obtain a with statement context object. +invoked to obtain a \keyword{with} statement context object. \item The context object's \method{__enter__()} method is invoked. |