mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
bpo-36724: Add _PyWarnings_Fini() (#12963)
Py_FinalizeEx() now clears _PyRuntime.warnings variables and _PyRuntime.exitfuncs. Changes: * Add _PyWarnings_Fini(): called by Py_FinalizeEx() * call_ll_exitfuncs() now clears _PyRuntime.exitfuncs while iterating on it (on backward order).
This commit is contained in:
parent
99e69d44f4
commit
87d23a041d
3 changed files with 35 additions and 17 deletions
|
@ -76,6 +76,7 @@ extern void PyLong_Fini(void);
|
|||
extern void _PyFaulthandler_Fini(void);
|
||||
extern void _PyHash_Fini(void);
|
||||
extern int _PyTraceMalloc_Fini(void);
|
||||
extern void _PyWarnings_Fini(_PyRuntimeState *runtime);
|
||||
|
||||
extern void _PyGILState_Init(
|
||||
_PyRuntimeState *runtime,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue