diff -r e910ea39253f Doc/extending/extending.rst --- a/Doc/extending/extending.rst Sun Oct 11 23:03:47 2015 -0700 +++ b/Doc/extending/extending.rst Mon Oct 12 16:05:53 2015 +0800 @@ -123,11 +123,12 @@ (usually a *NULL* pointer). Exceptions are stored in a static global variable inside the interpreter; if this variable is *NULL* no exception has occurred. A second global variable stores the "associated value" of the exception (the -second argument to :keyword:`raise`). A third variable contains the stack -traceback in case the error originated in Python code. These three variables -are the C equivalents of the result in Python of :meth:`sys.exc_info` (see the -section on module :mod:`sys` in the Python Library Reference). It is important -to know about them to understand how errors are passed around. +argument passed to the exception object in :keyword:`raise`). A third variable +contains the stack traceback in case the error originated in Python code. +These three variables are the C equivalents of the result in Python of +:meth:`sys.exc_info` (see the section on module :mod:`sys` in the Python Library +Reference). It is important to know about them to understand how errors are +passed around. The Python API defines a number of functions to set various types of exceptions.