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 @@ -267,6 +267,10 @@ Type Objects
267
267
and other places where a method's defining class cannot be passed using the
268
268
:c:type:`PyCMethod` calling convention.
269
269
270
+ The returned reference is :term:`borrowed <borrowed reference>` from *type*,
271
+ and will be valid as long as you hold a reference to *type*.
272
+ Do not release it with :c:func:`Py_DECREF` or similar.
273
+
270
274
.. versionadded:: 3.11
271
275
272
276
.. c:function:: int PyUnstable_Type_AssignVersionTag(PyTypeObject *type)
Original file line number Diff line number Diff line change @@ -2371,6 +2371,10 @@ PyType_GetFlags:PyTypeObject*:type:0:
2371
2371
PyType_GetName:PyObject*::+1:
2372
2372
PyType_GetName:PyTypeObject*:type:0:
2373
2373
2374
+ PyType_GetModuleByDef:PyObject*::0:
2375
+ PyType_GetModuleByDef:PyTypeObject*:type:0:
2376
+ PyType_GetModuleByDef:PyModuleDef*:def::
2377
+
2374
2378
PyType_GetQualName:PyObject*::+1:
2375
2379
PyType_GetQualName:PyTypeObject*:type:0:
2376
2380
You can’t perform that action at this time.
0 commit comments