@@ -938,16 +938,15 @@ \chapter{Exception Handling \label{exceptionHandling}}
938938This utility function creates and returns a new exception object. The
939939\var {name} argument must be the name of the new exception, a C string
940940of the form \code {module.class}. The \var {base} and
941- \var {dict} arguments are normally \NULL {}. Normally, this creates a
941+ \var {dict} arguments are normally \NULL {}. This creates a
942942class object derived from the root for all exceptions, the built-in
943943name \exception {Exception} (accessible in C as
944- \cdata {PyExc_Exception}). In this case the \member {__module__}
945- attribute of the new class is set to the first part (up to the last
946- dot) of the \var {name} argument, and the class name is set to the last
947- part (after the last dot). The
948- \var {base} argument can be used to specify an alternate base class.
949- The \var {dict} argument can be used to specify a dictionary of class
950- variables and methods.
944+ \cdata {PyExc_Exception}). The \member {__module__} attribute of the
945+ new class is set to the first part (up to the last dot) of the
946+ \var {name} argument, and the class name is set to the last part (after
947+ the last dot). The \var {base} argument can be used to specify an
948+ alternate base class. The \var {dict} argument can be used to specify
949+ a dictionary of class variables and methods.
951950\end {cfuncdesc }
952951
953952
@@ -991,21 +990,17 @@ \section{Standard Exceptions \label{standardExceptions}}
991990Note:
992991\begin {description }
993992\item [(1)]
994- This is a base class for other standard exceptions. If the
995- \code {-X} interpreter option is used, these will be tuples
996- containing the string exceptions which would have otherwise been
997- subclasses.
993+ This is a base class for other standard exceptions.
998994\end {description }
999995
1000996
1001997\section {Deprecation of String Exceptions }
1002998
1003- The \code {-X} command-line option will be removed in Python 1.6. All
1004- exceptions built into Python or provided in the standard library will
999+ All exceptions built into Python or provided in the standard library
1000+ are derived from \exception {Exception}.
10051001\withsubitem {(built-in exception)}{\ttindex {Exception}}
1006- be classes derived from \exception {Exception}.
10071002
1008- String exceptions will still be supported in the interpreter to allow
1003+ String exceptions are still supported in the interpreter to allow
10091004existing code to run unmodified, but this will also change in a future
10101005release.
10111006
0 commit comments