mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
[3.11] gh-67056: document that registering/unregistering an atexit func from within an atexit func is undefined (GH-104473) (#104500)
This commit is contained in:
parent
1afc0a9591
commit
a712c5f42d
2 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue