cpython (3.2): Document that atexit execution order is undefined (#9788)
http://hg.python.org/cpython/rev/e37fa30c4be4 changeset: 71604:e37fa30c4be4 branch: 3.2 user: Éric Araujo <merwok@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 @@ -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 -- Repository URL: http://hg.python.org/cpython
participants (1)
-
eric.araujo