mirror of
https://github.com/python/cpython.git
synced 2025-09-16 21:56:14 +00:00
Document that atexit execution order is undefined (#9788)
This commit is contained in:
parent
63b18a4445
commit
fe1e298d8b
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@
|
|||
|
||||
The :mod:`atexit` module defines functions to register and unregister cleanup
|
||||
functions. Functions thus registered are automatically executed upon normal
|
||||
interpreter termination.
|
||||
interpreter termination. The order in which the functions are called is not
|
||||
defined; if you have cleanup operations that depend on each other, you should
|
||||
wrap them in a function and register that one. This keeps :mod:`atexit` simple.
|
||||
|
||||
Note: the functions registered via this module are not called when the program
|
||||
is killed by a signal not handled by Python, when a Python fatal internal error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue