There was an error while loading. Please reload this page.
1 parent 63b18a4 commit fe1e298Copy full SHA for fe1e298
1 file changed
Doc/library/atexit.rst
@@ -9,7 +9,9 @@
9
10
The :mod:`atexit` module defines functions to register and unregister cleanup
11
functions. Functions thus registered are automatically executed upon normal
12
-interpreter termination.
+interpreter termination. The order in which the functions are called is not
13
+defined; if you have cleanup operations that depend on each other, you should
14
+wrap them in a function and register that one. This keeps :mod:`atexit` simple.
15
16
Note: the functions registered via this module are not called when the program
17
is killed by a signal not handled by Python, when a Python fatal internal error
0 commit comments