Éric Araujo committed df415bf

Document that atexit execution order is undefined (#9788)

  • Participants
  • Parent commits 0172202
  • Branches 2.7

Comments (0)

Files changed (1)

File Doc/library/atexit.rst

 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::