summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-07-29 16:04:24 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-07-29 16:04:24 (GMT)
commit43162e22c563a1cc0e9d9569b56a2d5e0c1bbbac (patch)
treeaef0a4b076c773e48bb3baa9186760e0c1881fbb /Doc
parentf0d44bccb741e38330ad0e6a193bc444af466959 (diff)
downloadcpython-43162e22c563a1cc0e9d9569b56a2d5e0c1bbbac.zip
cpython-43162e22c563a1cc0e9d9569b56a2d5e0c1bbbac.tar.gz
cpython-43162e22c563a1cc0e9d9569b56a2d5e0c1bbbac.tar.bz2
Document that atexit execution order is undefined (#9788)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/atexit.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/atexit.rst b/Doc/library/atexit.rst
index eab8cd9..fd884d7 100644
--- a/Doc/library/atexit.rst
+++ b/Doc/library/atexit.rst
@@ -12,7 +12,9 @@
The :mod:`atexit` module defines a single function to register 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.
.. seealso::