diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-02-26 16:40:38 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-02-26 16:40:38 (GMT) |
commit | 7bbd101bb18d7afb744f1cfa494187538d7c97c3 (patch) | |
tree | 2c5318a0c955363322230ffa786e6e7b153bc1f8 /Doc/c-api/exceptions.rst | |
parent | 5ea5d2c3f7ac3a308091bbbf11ab4f473571a628 (diff) | |
download | cpython-7bbd101bb18d7afb744f1cfa494187538d7c97c3.zip cpython-7bbd101bb18d7afb744f1cfa494187538d7c97c3.tar.gz cpython-7bbd101bb18d7afb744f1cfa494187538d7c97c3.tar.bz2 |
Fix several C-API doc typos caught by tomo cocoa on docs@.
The signature and description of PyException_SetCause now use "cause"
rather than "ctx" to match the code.
Diffstat (limited to 'Doc/c-api/exceptions.rst')
-rw-r--r-- | Doc/c-api/exceptions.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index c3d978f..0aa892d 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -306,7 +306,7 @@ in various ways. There is a separate error indicator for each thread. .. c:function:: void PyErr_SyntaxLocation(char *filename, int lineno) - Like :c:func:`PyErr_SyntaxLocationExc`, but the col_offset parameter is + Like :c:func:`PyErr_SyntaxLocationEx`, but the col_offset parameter is omitted. @@ -490,11 +490,11 @@ Exception Objects reference, as accessible from Python through :attr:`__cause__`. -.. c:function:: void PyException_SetCause(PyObject *ex, PyObject *ctx) +.. c:function:: void PyException_SetCause(PyObject *ex, PyObject *cause) - Set the cause associated with the exception to *ctx*. Use *NULL* to clear - it. There is no type check to make sure that *ctx* is either an exception - instance or :const:`None`. This steals a reference to *ctx*. + Set the cause associated with the exception to *cause*. Use *NULL* to clear + it. There is no type check to make sure that *cause* is either an exception + instance or :const:`None`. This steals a reference to *cause*. :attr:`__suppress_context__` is implicitly set to ``True`` by this function. |