Message353426
I think the problem with your logic is that the weakref to F is part of the garbage set. So, handle_finalizers() should detect that and clear the finalizer rather than call it. Once we get to delete_garbage() and start calling tp_clear(), we can't be running weakref callbacks or finalizers. The GC logic goes through great pains to ensure that. |
|
Date |
User |
Action |
Args |
2019-09-27 23:01:58 | nascheme | set | recipients:
+ nascheme, pitrou, vstinner, christian.heimes, pablogsal |
2019-09-27 23:01:58 | nascheme | set | messageid: <1569625318.58.0.115248070996.issue38009@roundup.psfhosted.org> |
2019-09-27 23:01:58 | nascheme | link | issue38009 messages |
2019-09-27 23:01:58 | nascheme | create | |
|