mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +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
2
setup.py
2
setup.py
|
@ -379,6 +379,8 @@ class PyBuildExt(build_ext):
|
|||
exts.append( Extension('operator', ['operator.c']) )
|
||||
# _functools
|
||||
exts.append( Extension("_functools", ["_functoolsmodule.c"]) )
|
||||
# atexit
|
||||
exts.append( Extension("atexit", ["atexitmodule.c"]) )
|
||||
# Python C API test module
|
||||
exts.append( Extension('_testcapi', ['_testcapimodule.c']) )
|
||||
# profilers (_lsprof is for cProfile.py)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue