It's a strong ref
This commit is contained in:
parent
6de854c09f
commit
84759e5c77
|
@ -576,8 +576,8 @@ state:
|
|||
The function is equivalent to :c:func:`PyType_FromModuleAndSpec` followed
|
||||
by :c:func:`PyModule_AddType`. *base* must be either ``NULL``, a single
|
||||
type object, or a tuple of types.
|
||||
Return ``NULL`` on error; otherwise a borrowed reference to a
|
||||
``PyTypeObject *``, which can be assigned to a module state object.
|
||||
Return ``NULL`` on error; otherwise a ``PyTypeObject *``, which can
|
||||
be assigned to a module state object.
|
||||
|
||||
.. versionadded:: 3.10
|
||||
|
||||
|
@ -587,8 +587,8 @@ state:
|
|||
The function is equivalent to :c:func:`PyErr_NewExceptionWithDoc` followed
|
||||
by :c:func:`PyModule_AddObjectRef`. The name of the exception object is
|
||||
taken from the last component of *name* after dot.
|
||||
Return ``NULL`` on error; otherwise a borrowed reference to a
|
||||
``PyObject *``, which can be assigned to a module state object.
|
||||
Return ``NULL`` on error; otherwise ``PyObject *``, which can be assigned
|
||||
to a module state object.
|
||||
|
||||
.. versionadded:: 3.10
|
||||
|
||||
|
|
Loading…
Reference in New Issue