[New-bugs-announce] [issue39322] Add gc.is_finalized to check if an object has been finalised by the gc

Pablo Galindo Salgado report at bugs.python.org
Mon Jan 13 10:17:08 EST 2020


New submission from Pablo Galindo Salgado <pablogsal at gmail.com>:

Right now is not possible to check from the Python layer if an object with gc support has been already finalized by the GC (but has been resurrected). When implementing some callbacks for the gc in order to add advanced statistics, I have greatly missed a function like this to check if a certain object has been resurrected / the finalizer has been called.

----------
assignee: pablogsal
components: Interpreter Core
messages: 359914
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Add gc.is_finalized to check if an object has been finalised by the gc
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39322>
_______________________________________


More information about the New-bugs-announce mailing list