parameters: ()
docstring: Redefine builtin functions 'quit()' and 'exit()' to print a message and raise an EOFError exception.
docstring_summary: Redefine builtin functions 'quit()' and 'exit()' to print a message and raise an EOFError exception.
docstring_tokens: Redefine builtin functions quit () and exit () to print a message and raise an EOFError exception .
function: def setquit():
      '''Redefine builtin functions 'quit()' and 'exit()' to print a message and raise an EOFError exception.'''
      # This function will be called prior to each interactive
      # interpreter loop or each single line, so we set the global
      # g_builtin_override_called to False so we know if a SystemExit
      # is thrown, we can catch it and tell the difference between
      # a call to "quit()" or "exit()" and something like
      # "sys.exit(123)"
      global g_builtin_override_called
      g_builtin_override_called = False
      builtins.quit = LLDBQuitter('quit')
      builtins.exit = LLDBQuitter('exit')
function_tokens: def setquit ( ) : # This function will be called prior to each interactive # interpreter loop or each single line, so we set the global # g_builtin_override_called to False so we know if a SystemExit # is thrown, we can catch it and tell the difference between # a call to "quit()" or "exit()" and something like # "sys.exit(123)" global g_builtin_override_called g_builtin_override_called = False builtins . quit = LLDBQuitter ( 'quit' ) builtins . exit = LLDBQuitter ( 'exit' )