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
282
282
and other places where a method's defining class cannot be passed using the
283
283
:c:type:`PyCMethod` calling convention.
284
284
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
+
285
289
.. versionadded:: 3.11
286
290
287
291
.. c:function:: int PyType_GetBaseByToken(PyTypeObject *type, void *token, PyTypeObject **result)
Original file line number Diff line number Diff line change @@ -2385,6 +2385,10 @@ PyType_GetFlags:PyTypeObject*:type:0:
2385
2385
PyType_GetName:PyObject*::+1:
2386
2386
PyType_GetName:PyTypeObject*:type:0:
2387
2387
2388
+ PyType_GetModuleByDef:PyObject*::0:
2389
+ PyType_GetModuleByDef:PyTypeObject*:type:0:
2390
+ PyType_GetModuleByDef:PyModuleDef*:def::
2391
+
2388
2392
PyType_GetQualName:PyObject*::+1:
2389
2393
PyType_GetQualName:PyTypeObject*:type:0:
2390
2394
You can’t perform that action at this time.
0 commit comments