summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMarcel Plch <gmarcel.plch@gmail.com>2017-12-20 10:17:58 (GMT)
committerAntoine Pitrou <pitrou@free.fr>2017-12-20 10:17:58 (GMT)
commit776407fe893fd42972c7e3f71423d9d86741d07c (patch)
tree2d2a5781d83709c56d27e5815af2d7a2fc5726c0 /Doc/library
parent19760863623b636a63ccf649107d9504c6465a92 (diff)
downloadcpython-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 'Doc/library')
-rw-r--r--Doc/library/atexit.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/atexit.rst b/Doc/library/atexit.rst
index 5c60b60..c2c058e 100644
--- a/Doc/library/atexit.rst
+++ b/Doc/library/atexit.rst
@@ -20,6 +20,9 @@ at interpreter termination time they will be run in the order ``C``, ``B``,
program is killed by a signal not handled by Python, when a Python fatal
internal error is detected, or when :func:`os._exit` is called.
+.. versionchanged:: 3.7
+ When used with C-API subinterpreters, registered functions
+ are local to the interpreter they were registered in.
.. function:: register(func, *args, **kwargs)