summaryrefslogtreecommitdiff
path: root/Doc/ref/ref7.tex
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2006-04-24 04:17:02 +0000
committerNick Coghlan <ncoghlan@gmail.com>2006-04-24 04:17:02 +0000
commit877cf234c903310d1b4bae41178d1921599783ee (patch)
treebd1325ad915f084cfd6fc3b583f46b6284eb6080 /Doc/ref/ref7.tex
parentc195d8a99510a27a706f71763b7f907bcc34d2c3 (diff)
downloadcpython-git-877cf234c903310d1b4bae41178d1921599783ee.tar.gz
Change PEP 343 related documentation to use the term context specifier instead of context object
Diffstat (limited to 'Doc/ref/ref7.tex')
-rw-r--r--Doc/ref/ref7.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex
index d7929af201..0c5984721d 100644
--- a/Doc/ref/ref7.tex
+++ b/Doc/ref/ref7.tex
@@ -315,10 +315,10 @@ 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 (see
+with methods defined by a context specifier or manager (see
section~\ref{context-managers}). This allows common
\keyword{try}...\keyword{except}...\keyword{finally} usage patterns to
-be encapsulated as context managers for convenient reuse.
+be encapsulated as context specifiers or managers for convenient reuse.
\begin{productionlist}
\production{with_stmt}
@@ -329,10 +329,10 @@ The execution of the \keyword{with} statement proceeds as follows:
\begin{enumerate}
-\item The expression is evaluated, to obtain a context object.
+\item The expression is evaluated, to obtain a context specifier.
-\item The context object's \method{__context__()} method is invoked to
-obtain a context manager object.
+\item The context specifier's \method{__context__()} method is
+invoked to obtain a context manager object.
\item The context manager's \method{__enter__()} method is invoked.