]> granicus.if.org Git - python/commitdiff
PyErr_BadInternalCall() raises a SystemError, not TypeError #5112
authorBenjamin Peterson <benjamin@python.org>
Sat, 31 Jan 2009 16:52:03 +0000 (16:52 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 31 Jan 2009 16:52:03 +0000 (16:52 +0000)
Doc/c-api/exceptions.rst

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