[Python-checkins] r69140 - python/trunk/Doc/c-api/exceptions.rst
benjamin.peterson
python-checkins at python.org
Sat Jan 31 17:52:03 CET 2009
Author: benjamin.peterson
Date: Sat Jan 31 17:52:03 2009
New Revision: 69140
Log:
PyErr_BadInternalCall() raises a SystemError, not TypeError #5112
Modified:
python/trunk/Doc/c-api/exceptions.rst
Modified: python/trunk/Doc/c-api/exceptions.rst
==============================================================================
--- python/trunk/Doc/c-api/exceptions.rst (original)
+++ python/trunk/Doc/c-api/exceptions.rst Sat Jan 31 17:52:03 2009
@@ -282,9 +282,10 @@
.. 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)
More information about the Python-checkins
mailing list