We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4346e25 commit ba55411Copy full SHA for ba55411
1 file changed
Doc/c-api/exceptions.rst
@@ -499,10 +499,10 @@ Querying the error indicator
499
.. c:function:: void PyErr_SetRaisedException(PyObject *exc)
500
501
Set *exc* as the exception currently being raised,
502
- clearing the existing exception if one is set. *exc* may be ``NULL``,
503
- in which case the current exception is cleared without setting a new one.
+ clearing the existing exception if one is set. If *exc* is ``NULL``,
+ just clear the existing exception.
504
505
- .. warning::
+ .. note::
506
507
This call ":term:`steals <steal>`" a reference to *exc*.
508
0 commit comments