Document that atexit execution order is undefined (#9788)

This commit is contained in:
Éric Araujo 2011-07-29 18:04:24 +02:00
parent f0d44bccb7
commit 43162e22c5
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@
The :mod:`atexit` module defines a single function to register cleanup The :mod:`atexit` module defines a single function to register cleanup
functions. Functions thus registered are automatically executed upon normal 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:: .. seealso::