()
Define new builtins 'quit' and 'exit'.

    These are objects which make the interpreter exit when called.
    The repr of each object contains a hint at how it works.
Define new builtins 'quit' and 'exit'.
Define new builtins quit and exit .
def setquit():
    """Define new builtins 'quit' and 'exit'.

    These are objects which make the interpreter exit when called.
    The repr of each object contains a hint at how it works.

    """
    if os.sep == '\\':
        eof = 'Ctrl-Z plus Return'
    else:
        eof = 'Ctrl-D (i.e. EOF)'

    builtins.quit = _sitebuiltins.Quitter('quit', eof)
    builtins.exit = _sitebuiltins.Quitter('exit', eof)
def setquit ( ) : if os . sep == '\\' : eof = 'Ctrl-Z plus Return' else : eof = 'Ctrl-D (i.e. EOF)' builtins . quit = _sitebuiltins . Quitter ( 'quit' , eof ) builtins . exit = _sitebuiltins . Quitter ( 'exit' , eof )