summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-02-27 22:32:47 (GMT)
committerGuido van Rossum <guido@python.org>2006-02-27 22:32:47 (GMT)
commitc2e20744b2b7811632030470971c31630f0975e2 (patch)
treee97b1c1471fd00e4e5648ed317274c1d9005d2ca /Doc
parent5fec904f84a40005f824abe295525a1710056be0 (diff)
downloadcpython-c2e20744b2b7811632030470971c31630f0975e2.zip
cpython-c2e20744b2b7811632030470971c31630f0975e2.tar.gz
cpython-c2e20744b2b7811632030470971c31630f0975e2.tar.bz2
PEP 343 -- the with-statement.
This was started by Mike Bland and completed by Guido (with help from Neal). This still needs a __future__ statement added; Thomas is working on Michael's patch for that aspect. There's a small amount of code cleanup and refactoring in ast.c, compile.c and ceval.c (I fixed the lltrace behavior when EXT_POP is used -- however I had to make lltrace a static global).
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/asttable.tex5
-rw-r--r--Doc/ref/ref7.tex6
2 files changed, 11 insertions, 0 deletions
diff --git a/Doc/lib/asttable.tex b/Doc/lib/asttable.tex
index 0d64886..e9347af 100644
--- a/Doc/lib/asttable.tex
+++ b/Doc/lib/asttable.tex
@@ -272,6 +272,11 @@
\lineiii{}{\member{else_}}{}
\hline
+\lineiii{With}{\member{expr}}{}
+\lineiii{}{\member{vars&}}{}
+\lineiii{}{\member{body}}{}
+\hline
+
\lineiii{Yield}{\member{value}}{}
\hline
diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex
index cfafc74..4ae6040 100644
--- a/Doc/ref/ref7.tex
+++ b/Doc/ref/ref7.tex
@@ -308,6 +308,12 @@ section~\ref{exceptions}, and information on using the \keyword{raise}
statement to generate exceptions may be found in section~\ref{raise}.
+\section{The \keyword{with} statement\label{with}}
+\stindex{with}
+
+The \keyword{with} statement specifies
+
+
\section{Function definitions\label{function}}
\indexii{function}{definition}
\stindex{def}