def interrupt_main():
    if _main:
        raise KeyboardInterrupt
    else:
        global _interrupt
        _interrupt = True
Set _interrupt flag to True to have start_new_thread raise
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/_dummy_thread.py/interrupt_main