mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +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
|
@ -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
|
||||
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.
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue