summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-12-28 21:16:07 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-12-28 21:16:07 (GMT)
commit80b59054c6c9727f38269275d4781f9053066c5c (patch)
treef002cfd08f73ad68011fb4d6324cc5a00be2502c /Doc/c-api
parent88a3083c28c9572bfa145f40e21d9c86e9fade04 (diff)
downloadcpython-80b59054c6c9727f38269275d4781f9053066c5c.zip
cpython-80b59054c6c9727f38269275d4781f9053066c5c.tar.gz
cpython-80b59054c6c9727f38269275d4781f9053066c5c.tar.bz2
#4763 PyErr_ExceptionMatches won't blow up with NULL arguments
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/exceptions.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 2998521..536b123 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -73,11 +73,10 @@ is a separate error indicator for each thread.
.. cfunction:: int PyErr_GivenExceptionMatches(PyObject *given, PyObject *exc)
- Return true if the *given* exception matches the exception in *exc*. If *exc*
- is a class object, this also returns true when *given* is an instance of a
- subclass. If *exc* is a tuple, all exceptions in the tuple (and recursively in
- subtuples) are searched for a match. If *given* is *NULL*, a memory access
- violation will occur.
+ Return true if the *given* exception matches the exception in *exc*. If
+ *exc* is a class object, this also returns true when *given* is an instance
+ of a subclass. If *exc* is a tuple, all exceptions in the tuple (and
+ recursively in subtuples) are searched for a match.
.. cfunction:: void PyErr_NormalizeException(PyObject**exc, PyObject**val, PyObject**tb)