mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
PyErr_BadInternalCall() raises a SystemError, not TypeError #5112
This commit is contained in:
parent
f709ab8526
commit
0ef803ff0f
1 changed files with 4 additions and 3 deletions
|
@ -282,9 +282,10 @@ is a separate error indicator for each thread.
|
|||
|
||||
.. cfunction:: void PyErr_BadInternalCall()
|
||||
|
||||
This is a shorthand for ``PyErr_SetString(PyExc_TypeError, message)``, where
|
||||
*message* indicates that an internal operation (e.g. a Python/C API function)
|
||||
was invoked with an illegal argument. It is mostly for internal use.
|
||||
This is a shorthand for ``PyErr_SetString(PyExc_SystemError, message)``,
|
||||
where *message* indicates that an internal operation (e.g. a Python/C API
|
||||
function) was invoked with an illegal argument. It is mostly for internal
|
||||
use.
|
||||
|
||||
|
||||
.. cfunction:: int PyErr_WarnEx(PyObject *category, char *message, int stacklevel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue