Message366077
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. |
|
Date |
User |
Action |
Args |
2020-04-09 16:23:46 | pablogsal | set | recipients:
+ pablogsal, pitrou, vstinner, Eric Cousineau |
2020-04-09 16:23:46 | pablogsal | set | messageid: <1586449426.48.0.113092251787.issue40240@roundup.psfhosted.org> |
2020-04-09 16:23:46 | pablogsal | link | issue40240 messages |
2020-04-09 16:23:46 | pablogsal | create | |
|