atexit.unregister()
atexit.unregister() is a Python function in the Atexit Module category. Removes a function from the list of exit handlers. The syntax is atexit.unregister(func). Returns: None. A typical example: atexit.unregister(cleanup) # Don't call cleanup on exit. A close sibling is atexit.register(), which registers a function to be called at program exit (like cleanup). A close sibling is atexit._clear(), which clears all registered exit handlers. More about this category: Exit handlers — register, unregister. Related Atexit Module entries: atexit.register(), atexit._clear(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try atexit.unregister() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.