Search notes:

Python: <install-root>/Lib/site.py

Lib/site.py (located under the Python root installation directory) is a module that is automatically imported during Python initialization (unless the command line option -S is specified).
This module appends site-specific paths of modules that are found under Lib/site-packages to the module search path.

setquit()

Among others, site.py has the function setquit() which defines the new(?) builtins(?) quit and exit.

Index