[Python-checkins] r46392 - python/trunk/Doc/api/exceptions.tex
georg.brandl
python-checkins at python.org
Fri May 26 21:04:48 CEST 2006
Author: georg.brandl
Date: Fri May 26 21:04:47 2006
New Revision: 46392
Modified:
python/trunk/Doc/api/exceptions.tex
Log:
Exception isn't the root of all exception classes anymore.
Modified: python/trunk/Doc/api/exceptions.tex
==============================================================================
--- python/trunk/Doc/api/exceptions.tex (original)
+++ python/trunk/Doc/api/exceptions.tex Fri May 26 21:04:47 2006
@@ -336,8 +336,9 @@
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
More information about the Python-checkins
mailing list