summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Core and Builtins
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-12-15 13:34:19 (GMT)
committerGitHub <noreply@github.com>2020-12-15 13:34:19 (GMT)
commitb8fa135908d294b350cdad04e2f512327a538dee (patch)
tree25b6b1516e3f6d29c9cf3cafb71c516cbc93a3c3 /Misc/NEWS.d/next/Core and Builtins
parent8473cf89bdbf2cb292b39c972db540504669b9cd (diff)
downloadcpython-b8fa135908d294b350cdad04e2f512327a538dee.zip
cpython-b8fa135908d294b350cdad04e2f512327a538dee.tar.gz
cpython-b8fa135908d294b350cdad04e2f512327a538dee.tar.bz2
bpo-42639: Move atexit state to PyInterpreterState (GH-23763)
* Add _PyAtExit_Call() function and remove pyexitfunc and pyexitmodule members of PyInterpreterState. The function logs atexit callback errors using _PyErr_WriteUnraisableMsg(). * Add _PyAtExit_Init() and _PyAtExit_Fini() functions. * Remove traverse, clear and free functions of the atexit module. Co-authored-by: Dong-hee Na <donghee.na@python.org>
Diffstat (limited to 'Misc/NEWS.d/next/Core and Builtins')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-12-09-01-55-10.bpo-42639.5pI5HG.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-12-09-01-55-10.bpo-42639.5pI5HG.rst b/Misc/NEWS.d/next/Core and Builtins/2020-12-09-01-55-10.bpo-42639.5pI5HG.rst
new file mode 100644
index 0000000..7999ee9
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-12-09-01-55-10.bpo-42639.5pI5HG.rst
@@ -0,0 +1,3 @@
+Make the :mod:`atexit` module state per-interpreter. It is now safe have more
+than one :mod:`atexit` module instance.
+Patch by Dong-hee Na and Victor Stinner.