]> granicus.if.org Git - python/commitdiff
#4763 PyErr_ExceptionMatches won't blow up with NULL arguments
authorBenjamin Peterson <benjamin@python.org>
Sun, 28 Dec 2008 21:16:07 +0000 (21:16 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 28 Dec 2008 21:16:07 +0000 (21:16 +0000)
Doc/c-api/exceptions.rst

index 29985218e4087c3633b44f86da3bdc734f5b32d1..536b123af715fb4f8a99bbb94d8d57b622496d85 100644 (file)
@@ -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)