mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
#4763 PyErr_ExceptionMatches won't blow up with NULL arguments
This commit is contained in:
parent
88a3083c28
commit
80b59054c6
1 changed files with 4 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue