summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-28 05:51:02 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-28 05:51:02 (GMT)
commitd03b073e9bc531bd21d3f6da9882c54e36975b0c (patch)
tree5fd2b8a95f2277c53bdfb43340b75e55f2e5b711 /Doc
parent168e99f6db1a207477fa02609663b66475bfd460 (diff)
downloadcpython-d03b073e9bc531bd21d3f6da9882c54e36975b0c.zip
cpython-d03b073e9bc531bd21d3f6da9882c54e36975b0c.tar.gz
cpython-d03b073e9bc531bd21d3f6da9882c54e36975b0c.tar.bz2
Add version added info for with statement and context managers
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libcontextlib.tex2
-rw-r--r--Doc/ref/ref3.tex2
-rw-r--r--Doc/ref/ref7.tex2
3 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libcontextlib.tex b/Doc/lib/libcontextlib.tex
index 842c954..46f9cdd 100644
--- a/Doc/lib/libcontextlib.tex
+++ b/Doc/lib/libcontextlib.tex
@@ -4,6 +4,8 @@
\declaremodule{standard}{contextlib}
\modulesynopsis{Utilities for \keyword{with}-statement contexts.}
+\versionadded{2.5}
+
This module provides utilities for common tasks involving the
\keyword{with} statement.
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index dfd4102..48a37f1 100644
--- a/Doc/ref/ref3.tex
+++ b/Doc/ref/ref3.tex
@@ -2109,6 +2109,8 @@ implement a \method{__coerce__()} method, for use by the built-in
\subsection{Context Managers and Contexts\label{context-managers}}
+\versionadded{2.5}
+
A \dfn{context manager} is an object that manages the entry to, and exit
from, a \dfn{context} surrounding a block of code. Context managers are
normally invoked using the \keyword{with} statement (described in
diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex
index a5a6eaf..ecbc756 100644
--- a/Doc/ref/ref7.tex
+++ b/Doc/ref/ref7.tex
@@ -312,6 +312,8 @@ statement to generate exceptions may be found in section~\ref{raise}.
\section{The \keyword{with} statement\label{with}}
\stindex{with}
+\versionadded{2.5}
+
The \keyword{with} statement is used to wrap the execution of a block
with methods defined by a context manager (see
section~\ref{context-managers}). This allows common