mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
[doc] Fix typo c-api/exceptions.rst (GH-27847)
Co-authored-by: Tianqing Peng <pengtianqing@yimian.com.cn>
This commit is contained in:
parent
7b550dfce6
commit
dcbf7ff6a7
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ For convenience, some of these functions will always return a
|
||||||
This is the most common way to set the error indicator. The first argument
|
This is the most common way to set the error indicator. The first argument
|
||||||
specifies the exception type; it is normally one of the standard exceptions,
|
specifies the exception type; it is normally one of the standard exceptions,
|
||||||
e.g. :c:data:`PyExc_RuntimeError`. You need not increment its reference count.
|
e.g. :c:data:`PyExc_RuntimeError`. You need not increment its reference count.
|
||||||
The second argument is an error message; it is decoded from ``'utf-8``'.
|
The second argument is an error message; it is decoded from ``'utf-8'``.
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: void PyErr_SetObject(PyObject *type, PyObject *value)
|
.. c:function:: void PyErr_SetObject(PyObject *type, PyObject *value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue