Skip to content

Instantly share code, notes, and snippets.

@AnthonyDiGirolamo
Created December 11, 2009 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnthonyDiGirolamo/254345 to your computer and use it in GitHub Desktop.
Save AnthonyDiGirolamo/254345 to your computer and use it in GitHub Desktop.
python interactive session
#!/usr/bin/python
# Python Interactive Breakpoint
import traceback, code
try:
raise None
except:
frame = sys.exc_info()[2].tb_frame
namespace = dict(frame.f_globals)
namespace.update(frame.f_locals)
code.interact(banner="Entering Interactive Session", local=namespace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment