parameters: ()
docstring: Set _interrupt flag to True to have start_new_thread raise
      KeyboardInterrupt upon exiting.
docstring_summary: Set _interrupt flag to True to have start_new_thread raise
      KeyboardInterrupt upon exiting.
docstring_tokens: Set _interrupt flag to True to have start_new_thread raise KeyboardInterrupt upon exiting .
function: def interrupt_main():
      """Set _interrupt flag to True to have start_new_thread raise
      KeyboardInterrupt upon exiting."""
      if _main:
          raise KeyboardInterrupt
      else:
          global _interrupt
          _interrupt = True
function_tokens: def interrupt_main ( ) : if _main : raise KeyboardInterrupt else : global _interrupt _interrupt = True