summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-05-29 02:17:23 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-05-29 02:17:23 (GMT)
commit847207acffaf35e59601fea7d54f6db6f307e327 (patch)
treeaec3d56d69f4f3f82a300d27122fcdd00a75c0aa /Doc/api
parentd3d5768e5ecf017d96b71d8ed437267ff47203b1 (diff)
downloadcpython-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/api')
-rw-r--r--Doc/api/exceptions.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/api/exceptions.tex b/Doc/api/exceptions.tex
index d7960de..8cd0fe4 100644
--- a/Doc/api/exceptions.tex
+++ b/Doc/api/exceptions.tex
@@ -102,7 +102,7 @@ for each thread.
indicator is already set, it is cleared first. If the objects are
\NULL, the error indicator is cleared. Do not pass a \NULL{} type
and non-\NULL{} value or traceback. The exception type should be a
- string or class. Do not pass an invalid exception type or value.
+ class. Do not pass an invalid exception type or value.
(Violating these rules will cause subtle problems later.) This call
takes away a reference to each object: you must own a reference to
each object before the call and after the call you no longer own
@@ -130,7 +130,7 @@ for each thread.
\begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception,
const char *format, \moreargs}
This function sets the error indicator and returns \NULL.
- \var{exception} should be a Python exception (string or class, not
+ \var{exception} should be a Python exception (class, not
an instance). \var{format} should be a string, containing format
codes, similar to \cfunction{printf()}. The \code{width.precision}
before a format code is parsed, but the width part is ignored.