This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients Eric Cousineau, pablogsal, pitrou, vstinner
Date 2020-04-09.16:23:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586449426.48.0.113092251787.issue40240@roundup.psfhosted.org>
In-reply-to
Content
There is a specific Python function in 3.9 for it:

https://docs.python.org/3.9/library/gc.html#gc.is_finalized

So it may sense to add a function to query if an object is finalized, but I am not sure it makes sense to allow to mark an object as finalized because that could mess with the GC algorithm.

Certainly exposing the macros per se may be a bad idea because there are too many implementation details there (like where the flags are stored) so at least a new function will be needed.
History
Date User Action Args
2020-04-09 16:23:46pablogsalsetrecipients: + pablogsal, pitrou, vstinner, Eric Cousineau
2020-04-09 16:23:46pablogsalsetmessageid: <1586449426.48.0.113092251787.issue40240@roundup.psfhosted.org>
2020-04-09 16:23:46pablogsallinkissue40240 messages
2020-04-09 16:23:46pablogsalcreate