summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/exceptions.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-01-31 16:52:03 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-01-31 16:52:03 (GMT)
commit0ef803ff0f95d7bcf0090ff9677c595e04d76a69 (patch)
tree900b3bc880e414b16098aebbaa7762fa405a5be4 /Doc/c-api/exceptions.rst
parentf709ab852636ff0731eacb32483a46463f01a0dc (diff)
downloadcpython-0ef803ff0f95d7bcf0090ff9677c595e04d76a69.zip
cpython-0ef803ff0f95d7bcf0090ff9677c595e04d76a69.tar.gz
cpython-0ef803ff0f95d7bcf0090ff9677c595e04d76a69.tar.bz2
PyErr_BadInternalCall() raises a SystemError, not TypeError #5112
Diffstat (limited to 'Doc/c-api/exceptions.rst')
-rw-r--r--Doc/c-api/exceptions.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 536b123..1cdce3f 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -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)