2 import code, sys, threading
6 namespace = sys.exc_info()[2].tb_frame.f_back.f_back.f_globals
12 code.interact(local=namespace, banner='')
13 print("Not exiting implicitly. Use sys.exit() if you really want to.")
15 for thread in threading.enumerate():
20 print("(%d threads: %d primary, %d daemon)" % (dt + ndt, ndt, dt))
21 threading.Timer(0, CLI).start()