[Python-checkins] r45488 - python/trunk/Doc/whatsnew/whatsnew25.tex

andrew.kuchling python-checkins at python.org
Mon Apr 17 16:00:31 CEST 2006


Author: andrew.kuchling
Date: Mon Apr 17 16:00:31 2006
New Revision: 45488

Modified:
   python/trunk/Doc/whatsnew/whatsnew25.tex
Log:
Remove translated code hidden inside a comment environment; latex2html gets confused and includes half of it anyway

Modified: python/trunk/Doc/whatsnew/whatsnew25.tex
==============================================================================
--- python/trunk/Doc/whatsnew/whatsnew25.tex	(original)
+++ python/trunk/Doc/whatsnew/whatsnew25.tex	Mon Apr 17 16:00:31 2006
@@ -792,38 +792,6 @@
             # return False
 \end{verbatim}
 
-\begin{comment}
-% XXX should I give the code, or is the above explanation sufficient?
-\pep{343} shows the code generated for a \keyword{with} statement.  A
-statement such as:
-
-\begin{verbatim}
-with EXPR as VAR:
-    BLOCK
-\end{verbatim}
-
-is translated into:
-
-\begin{verbatim}
-ctx = (EXPR).__context__()
-exit = ctx.__exit__  # Not calling it yet
-value = ctx.__enter__()
-exc = True
-try:
-    try:
-        VAR = value  # Only if "as VAR" is present
-        BLOCK
-    except:
-        # The exceptional case is handled here
-        exc = False
-        if not exit(*sys.exc_info()):
-            raise
-finally:
-    # The normal and non-local-goto cases are handled here
-    if exc:
-        exit(None, None, None)
-\end{verbatim}
-\end{comment}
 
 \subsection{The contextlib module\label{module-contextlib}}
 


More information about the Python-checkins mailing list