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 @@ -855,6 +855,11 @@ always available.
855855   reflect the actual number of references.  Consequently, do not rely
856856   on the returned value to be accurate, other than a value of 0 or 1.
857857
858+    .. impl-detail ::
859+ 
860+       :term: `immortal ` objects with a large reference count can be identified
861+       with :func: `_is_immortal `.
862+ 
858863   .. versionchanged :: 3.12 
859864      Immortal objects have very large refcounts that do not match
860865      the actual number of references to the object.
Original file line number Diff line number Diff line change 611611  which only exists in specialized builds of Python, may now return objects
612612  from other interpreters than the one it's called in.
613613
614+ * Add :func: `sys._is_immortal ` for determining if an object is :term: `immortal `.
615+   (Contributed by Peter Bierma in :gh: `128509 `.)
616+ 
614617sys.monitoring
615618-------------- 
616619
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments