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 @@ -2388,6 +2388,10 @@ PyType_GetFlags:PyTypeObject*:type:0:
2388
2388
PyType_GetName:PyObject*::+1:
2389
2389
PyType_GetName:PyTypeObject*:type:0:
2390
2390
2391
+ PyType_GetModuleByDef:PyObject*::0:
2392
+ PyType_GetModuleByDef:PyTypeObject*:type:0:
2393
+ PyType_GetModuleByDef:PyModuleDef*:def::
2394
+
2391
2395
PyType_GetQualName:PyObject*::+1:
2392
2396
PyType_GetQualName:PyTypeObject*:type:0:
2393
2397
You can’t perform that action at this time.
0 commit comments