diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-04-17 14:00:31 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-04-17 14:00:31 (GMT) |
commit | f7823a341c60a4f1440274638e2cfcbf015fc61f (patch) | |
tree | 0ea3b4736a3ac3441c1c73d11f85e19e78e12794 /Doc/whatsnew/whatsnew25.tex | |
parent | 6c1074888e147c11ac0175e97594daa4f0625844 (diff) | |
download | cpython-f7823a341c60a4f1440274638e2cfcbf015fc61f.zip cpython-f7823a341c60a4f1440274638e2cfcbf015fc61f.tar.gz cpython-f7823a341c60a4f1440274638e2cfcbf015fc61f.tar.bz2 |
Remove translated code hidden inside a comment environment; latex2html gets confused and includes half of it anyway
Diffstat (limited to 'Doc/whatsnew/whatsnew25.tex')
-rw-r--r-- | Doc/whatsnew/whatsnew25.tex | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index ebb021c..a92cb9a 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -792,38 +792,6 @@ class DatabaseContext: # 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}} |