diff options
author | Marcel Plch <gmarcel.plch@gmail.com> | 2017-12-20 10:17:58 (GMT) |
---|---|---|
committer | Antoine Pitrou <pitrou@free.fr> | 2017-12-20 10:17:58 (GMT) |
commit | 776407fe893fd42972c7e3f71423d9d86741d07c (patch) | |
tree | 2d2a5781d83709c56d27e5815af2d7a2fc5726c0 /Include/pylifecycle.h | |
parent | 19760863623b636a63ccf649107d9504c6465a92 (diff) | |
download | cpython-776407fe893fd42972c7e3f71423d9d86741d07c.zip cpython-776407fe893fd42972c7e3f71423d9d86741d07c.tar.gz cpython-776407fe893fd42972c7e3f71423d9d86741d07c.tar.bz2 |
bpo-31901: atexit callbacks should be run at subinterpreter shutdown (#4611)
Change atexit behavior and PEP-489 multiphase init support.
Diffstat (limited to 'Include/pylifecycle.h')
-rw-r--r-- | Include/pylifecycle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pylifecycle.h b/Include/pylifecycle.h index 77c4330..afeae93 100644 --- a/Include/pylifecycle.h +++ b/Include/pylifecycle.h @@ -92,7 +92,7 @@ PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *); * exit functions. */ #ifndef Py_LIMITED_API -PyAPI_FUNC(void) _Py_PyAtExit(void (*func)(void)); +PyAPI_FUNC(void) _Py_PyAtExit(void (*func)(PyObject *), PyObject *); #endif PyAPI_FUNC(int) Py_AtExit(void (*func)(void)); |