summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-26 19:04:47 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-26 19:04:47 (GMT)
commite001816dff9e12785d4ddbd4f8912ebb099248a1 (patch)
treeac148f3cdf08dc8239d4f07d025eb1e7369b1dc7 /Doc/api
parent04f031d202543b4301715c6f28685acdcdbd4d1c (diff)
downloadcpython-e001816dff9e12785d4ddbd4f8912ebb099248a1.zip
cpython-e001816dff9e12785d4ddbd4f8912ebb099248a1.tar.gz
cpython-e001816dff9e12785d4ddbd4f8912ebb099248a1.tar.bz2
Exception isn't the root of all exception classes anymore.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/exceptions.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/api/exceptions.tex b/Doc/api/exceptions.tex
index e1bfb38..504d1dc 100644
--- a/Doc/api/exceptions.tex
+++ b/Doc/api/exceptions.tex
@@ -336,8 +336,9 @@ for each thread.
The \var{name} argument must be the name of the new exception, a C
string of the form \code{module.class}. The \var{base} and
\var{dict} arguments are normally \NULL. This creates a class
- object derived from the root for all exceptions, the built-in name
- \exception{Exception} (accessible in C as \cdata{PyExc_Exception}).
+ object derived from \exception{Exception} (accessible in C as
+ \cdata{PyExc_Exception}).
+
The \member{__module__} attribute of the new class is set to the
first part (up to the last dot) of the \var{name} argument, and the
class name is set to the last part (after the last dot). The