Lines Matching refs:atexit
1 :mod:`atexit` --- Exit handlers
4 .. module:: atexit
12 **Source code:** :source:`Lib/atexit.py`
16 The :mod:`atexit` module defines a single function to register cleanup
18 interpreter termination. :mod:`atexit` runs these functions in the *reverse*
34 :mod:`atexit` without the programmer's knowledge. Authors who use
35 ``sys.exitfunc`` should convert their code to use :mod:`atexit` instead. The
37 :mod:`atexit` and register the function that had been bound to ``sys.exitfunc``.
66 Useful example of :mod:`atexit` to read and write :mod:`readline` history files.
71 :mod:`atexit` Example
91 import atexit
92 atexit.register(savecounter)
100 import atexit
101 atexit.register(goodbye, 'Donny', 'nice')
104 atexit.register(goodbye, adjective='nice', name='Donny')
108 import atexit
110 @atexit.register