File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,10 @@ Type Objects
282282 and other places where a method's defining class cannot be passed using the
283283 :c:type:`PyCMethod` calling convention.
284284
285+ The returned reference is :term:`borrowed <borrowed reference>` from *type*,
286+ and will be valid as long as you hold a reference to *type*.
287+ Do not release it with :c:func:`Py_DECREF` or similar.
288+
285289 .. versionadded:: 3.11
286290
287291.. c:function:: int PyType_GetBaseByToken(PyTypeObject *type, void *token, PyTypeObject **result)
Original file line number Diff line number Diff line change @@ -2388,6 +2388,10 @@ PyType_GetFlags:PyTypeObject*:type:0:
23882388PyType_GetName:PyObject*::+1:
23892389PyType_GetName:PyTypeObject*:type:0:
23902390
2391+ PyType_GetModuleByDef:PyObject*::0:
2392+ PyType_GetModuleByDef:PyTypeObject*:type:0:
2393+ PyType_GetModuleByDef:PyModuleDef*:def::
2394+
23912395PyType_GetQualName:PyObject*::+1:
23922396PyType_GetQualName:PyTypeObject*:type:0:
23932397
You can’t perform that action at this time.
0 commit comments