mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Patch #1680961: remove sys.exitfunc and replace it with a private C API. Also, reimplement atexit in C so it can take advantage of this private API.
This commit is contained in:
parent
450ee81b22
commit
670e692134
13 changed files with 360 additions and 204 deletions
|
@ -361,7 +361,7 @@ PyImport_GetModuleDict(void)
|
|||
|
||||
/* List of names to clear in sys */
|
||||
static char* sys_deletes[] = {
|
||||
"path", "argv", "ps1", "ps2", "exitfunc",
|
||||
"path", "argv", "ps1", "ps2",
|
||||
"exc_type", "exc_value", "exc_traceback",
|
||||
"last_type", "last_value", "last_traceback",
|
||||
"path_hooks", "path_importer_cache", "meta_path",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue