diff options
author | Georg Brandl <georg@python.org> | 2011-07-13 13:59:43 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-07-13 13:59:43 (GMT) |
commit | 993409ddc07d9b25fcb7a99b2689d38494f1da72 (patch) | |
tree | 597832ee1a21b6de79b8f99f35318ce657b8486b /Doc/c-api | |
parent | 3c14b4ebe789149caf929cfdd92f486c08de4a37 (diff) | |
parent | 325eb470b70bbd46e5fc9519336d969cf1b7802b (diff) | |
download | cpython-993409ddc07d9b25fcb7a99b2689d38494f1da72.zip cpython-993409ddc07d9b25fcb7a99b2689d38494f1da72.tar.gz cpython-993409ddc07d9b25fcb7a99b2689d38494f1da72.tar.bz2 |
Merge doc change from 3.2.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/exceptions.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 4c946c1..6f13c80 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -354,10 +354,10 @@ in various ways. There is a separate error indicator for each thread. .. c:function:: PyObject* PyErr_NewException(char *name, PyObject *base, PyObject *dict) - This utility function creates and returns a new exception object. The *name* + This utility function creates and returns a new exception class. The *name* argument must be the name of the new exception, a C string of the form - ``module.class``. The *base* and *dict* arguments are normally *NULL*. This - creates a class object derived from :exc:`Exception` (accessible in C as + ``module.classname``. The *base* and *dict* arguments are normally *NULL*. + This creates a class object derived from :exc:`Exception` (accessible in C as :c:data:`PyExc_Exception`). The :attr:`__module__` attribute of the new class is set to the first part (up |