diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-05-29 02:17:23 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-05-29 02:17:23 (GMT) |
commit | 847207acffaf35e59601fea7d54f6db6f307e327 (patch) | |
tree | aec3d56d69f4f3f82a300d27122fcdd00a75c0aa /Doc/ref/ref4.tex | |
parent | d3d5768e5ecf017d96b71d8ed437267ff47203b1 (diff) | |
download | cpython-847207acffaf35e59601fea7d54f6db6f307e327.zip cpython-847207acffaf35e59601fea7d54f6db6f307e327.tar.gz cpython-847207acffaf35e59601fea7d54f6db6f307e327.tar.bz2 |
SF bug #719367, string exceptions are deprecated
Remove references to string based exceptions in the doc.
Diffstat (limited to 'Doc/ref/ref4.tex')
-rw-r--r-- | Doc/ref/ref4.tex | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Doc/ref/ref4.tex b/Doc/ref/ref4.tex index 0eb6841..b993266 100644 --- a/Doc/ref/ref4.tex +++ b/Doc/ref/ref4.tex @@ -183,12 +183,9 @@ either case, it prints a stack backtrace, except when the exception is \exception{SystemExit}\withsubitem{(built-in exception)}{\ttindex{SystemExit}}. -Exceptions are identified by string objects or class instances. -Selection of a matching except clause is based on object identity -(i.e., two different string objects with the same value represent -different exceptions!) For string exceptions, the \keyword{except} -clause must reference the same string object. For class exceptions, -the \keyword{except} clause must reference the same class or a base +Exceptions are identified by class instances. +Selection of a matching except clause is based on object identity. +The \keyword{except} clause must reference the same class or a base class of it. When an exception is raised, an object (maybe \code{None}) is passed |