[Python-checkins] cpython (2.7): Document that atexit execution order is undefined (#9788)
eric.araujo
python-checkins at python.org
Fri Jul 29 18:13:47 CEST 2011
http://hg.python.org/cpython/rev/df415bfbb652
changeset: 71607:df415bfbb652
branch: 2.7
user: Éric Araujo <merwok at netwok.org>
date: Fri Jul 29 18:04:24 2011 +0200
summary:
Document that atexit execution order is undefined (#9788)
files:
Doc/library/atexit.rst | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Doc/library/atexit.rst b/Doc/library/atexit.rst
--- 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::
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list