PyUnstable_AtExit
isn't well tested and undocumented
#127791
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-C-API
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
While working on #126908, @vstinner noted that this part of
PyUnstable_AtExit
looks wrong:cpython/Modules/atexitmodule.c
Lines 45 to 47 in cef0a90
This will result in loss of callbacks after one has been stored, because the second-to-last one is always overwritten. Noted in gh-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
Linked PRs
PyUnstable_AtExit
#127793PyUnstable_AtExit
(GH-127793) #127819The text was updated successfully, but these errors were encountered: