Created
December 11, 2009 17:00
-
-
Save AnthonyDiGirolamo/254345 to your computer and use it in GitHub Desktop.
python interactive session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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