Mercurial > cpython-lru_cache-weakref
changeset 71607:df415bfbb652 2.7
Document that atexit execution order is undefined (#9788)
| author | Éric Araujo <merwok@netwok.org> |
|---|---|
| date | Fri, 29 Jul 2011 18:04:24 +0200 |
| parents | 01722022f88d |
| children | 5a248fcfa112 |
| files | Doc/library/atexit.rst |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Doc/library/atexit.rst Fri Jul 29 17:59:17 2011 +0200 +++ b/Doc/library/atexit.rst Fri Jul 29 18:04:24 2011 +0200 @@ -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::
