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 @@ -2385,6 +2385,10 @@ PyType_GetFlags:PyTypeObject*:type:0:
23852385PyType_GetName:PyObject*::+1:
23862386PyType_GetName:PyTypeObject*:type:0:
23872387
2388+ PyType_GetModuleByDef:PyObject*::0:
2389+ PyType_GetModuleByDef:PyTypeObject*:type:0:
2390+ PyType_GetModuleByDef:PyModuleDef*:def::
2391+ 
23882392PyType_GetQualName:PyObject*::+1:
23892393PyType_GetQualName:PyTypeObject*:type:0:
23902394
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments