Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Doc/c-api/exceptions.rst
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
  • Loading branch information
pablogsal and iritkatriel authored Aug 18, 2021
commit a102b8f64206e3196512b3076fd02f472252f27f
2 changes: 1 addition & 1 deletion Doc/c-api/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ For convenience, some of these functions will always return a

.. c:function:: void PyErr_ChainExceptions(PyObject *exc, PyObject *val, PyObject *tb)

Set the provided exception as the cause for the current exception. If there
Set the provided exception as the context for the current exception. If there
is no exception currently set (:c:func:`PyErr_Occurred` returns ``0``) this
function behaves like :c:func:`PyErr_Restore`, but if an exception is
already set, set the provided exception as the context (accessible from
Expand Down