diff options
author | Guido van Rossum <guido@python.org> | 1997-10-07 14:41:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-07 14:41:04 (GMT) |
commit | 6cd7ecb10be4a67a091904b25257f61f801b8968 (patch) | |
tree | 80cdd5668ca1f1999da1b0d4b254743ac054d3d9 /Doc | |
parent | fdacc58bfeee17d0ca0d895d6c094bf700b70acb (diff) | |
download | cpython-6cd7ecb10be4a67a091904b25257f61f801b8968.zip cpython-6cd7ecb10be4a67a091904b25257f61f801b8968.tar.gz cpython-6cd7ecb10be4a67a091904b25257f61f801b8968.tar.bz2 |
The sequence behavior is now on the Exception root class rather than
on the StandardError class.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libexcs.tex | 7 | ||||
-rw-r--r-- | Doc/libexcs.tex | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/Doc/lib/libexcs.tex b/Doc/lib/libexcs.tex index e5dba34..863c7e1 100644 --- a/Doc/lib/libexcs.tex +++ b/Doc/lib/libexcs.tex @@ -62,14 +62,15 @@ from this class. All user-defined exceptions should also be derived from this class, but this is not (yet) enforced. The \code{str()} function, when applied to an instance of this class (or most derived classes) returns the string value of the argument or arguments, or an -empty string if no arguments were given to the constructor. +empty string if no arguments were given to the constructor. When used +as a sequence, this accesses the arguments given to the constructor +(handy for backward compatibility with old code). \end{excdesc} \begin{excdesc}{StandardError} The base class for built-in exceptions. All built-in exceptions are derived from this class, which is itself derived from the root class -\code{Exception}. For backward compatibility, when used as a -sequence, this accesses the arguments given to the constructor. +\code{Exception}. \end{excdesc} \begin{excdesc}{ArithmeticError} diff --git a/Doc/libexcs.tex b/Doc/libexcs.tex index e5dba34..863c7e1 100644 --- a/Doc/libexcs.tex +++ b/Doc/libexcs.tex @@ -62,14 +62,15 @@ from this class. All user-defined exceptions should also be derived from this class, but this is not (yet) enforced. The \code{str()} function, when applied to an instance of this class (or most derived classes) returns the string value of the argument or arguments, or an -empty string if no arguments were given to the constructor. +empty string if no arguments were given to the constructor. When used +as a sequence, this accesses the arguments given to the constructor +(handy for backward compatibility with old code). \end{excdesc} \begin{excdesc}{StandardError} The base class for built-in exceptions. All built-in exceptions are derived from this class, which is itself derived from the root class -\code{Exception}. For backward compatibility, when used as a -sequence, this accesses the arguments given to the constructor. +\code{Exception}. \end{excdesc} \begin{excdesc}{ArithmeticError} |