summaryrefslogtreecommitdiffstats
path: root/Doc/api/exceptions.tex
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-03-01 22:10:49 (GMT)
committerBrett Cannon <bcannon@gmail.com>2006-03-01 22:10:49 (GMT)
commit54ac29497ea7f47852ec6f3ffb2570bbc29ce847 (patch)
tree561db765a15309bd8a1ec72983e6004f1c8b956c /Doc/api/exceptions.tex
parent65b3dab50e7192b4ad6cae046c3ed15b53752ac4 (diff)
downloadcpython-54ac29497ea7f47852ec6f3ffb2570bbc29ce847.zip
cpython-54ac29497ea7f47852ec6f3ffb2570bbc29ce847.tar.gz
cpython-54ac29497ea7f47852ec6f3ffb2570bbc29ce847.tar.bz2
Document PEP 352 changes. Also added GeneratorExit.
Diffstat (limited to 'Doc/api/exceptions.tex')
-rw-r--r--Doc/api/exceptions.tex8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/api/exceptions.tex b/Doc/api/exceptions.tex
index b906172..c4727f2 100644
--- a/Doc/api/exceptions.tex
+++ b/Doc/api/exceptions.tex
@@ -346,6 +346,7 @@ have the type \ctype{PyObject*}; they are all class objects. For
completeness, here are all the variables:
\begin{tableiii}{l|l|c}{cdata}{C Name}{Python Name}{Notes}
+ \lineiii{PyExc_BaseException\ttindex{PyExc_BaseException}}{\exception{BaseException}}{(1), (4)}
\lineiii{PyExc_Exception\ttindex{PyExc_Exception}}{\exception{Exception}}{(1)}
\lineiii{PyExc_StandardError\ttindex{PyExc_StandardError}}{\exception{StandardError}}{(1)}
\lineiii{PyExc_ArithmeticError\ttindex{PyExc_ArithmeticError}}{\exception{ArithmeticError}}{(1)}
@@ -388,14 +389,17 @@ Notes:
\item[(3)]
Only defined on Windows; protect code that uses this by testing that
the preprocessor macro \code{MS_WINDOWS} is defined.
+
+\item[(4)]
+ \versionadded{2.5}
\end{description}
\section{Deprecation of String Exceptions}
All exceptions built into Python or provided in the standard library
-are derived from \exception{Exception}.
-\withsubitem{(built-in exception)}{\ttindex{Exception}}
+are derived from \exception{BaseException}.
+\withsubitem{(built-in exception)}{\ttindex{BaseException}}
String exceptions are still supported in the interpreter to allow
existing code to run unmodified, but this will also change in a future