mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
gh-67056: document that registering/unregistering an atexit func from within an atexit func is undefined (#104473)
This commit is contained in:
parent
146106a0f1
commit
b15a1a6ac6
@ -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.
|
||||
|
||||
**Note:** The effect of registering or unregistering functions from within
|
||||
a cleanup function is undefined.
|
||||
|
||||
.. versionchanged:: 3.7
|
||||
When used with C-API subinterpreters, registered functions
|
||||
are local to the interpreter they were registered in.
|
||||
|
@ -0,0 +1,2 @@
|
||||
Document that the effect of registering or unregistering an :mod:`atexit`
|
||||
cleanup function from within a registered cleanup function is undefined.
|
Loading…
Reference in New Issue
Block a user