Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
While working on#126908,@vstinner noted that this part ofPyUnstable_AtExit looks wrong:
cpython/Modules/atexitmodule.c
Lines 45 to 47 incef0a90
| else { | |
| state->last_ll_callback->next=callback; | |
| } |
This will result in loss of callbacks after one has been stored, because the second-to-last one is always overwritten. Noted ingh-118915,PyUnstable_AtExit is also undocumented. I'll work on fixing both.
CPython versions tested on:
3.13, 3.14, CPython main branch
Operating systems tested on:
Linux