Skip to content

Instantly share code, notes, and snippets.

@binarin
Created May 4, 2012 09:58
Show Gist options
  • Save binarin/2593711 to your computer and use it in GitHub Desktop.
Save binarin/2593711 to your computer and use it in GitHub Desktop.
import traceback
import sys
def a():
b()
def b():
c()
def c():
try:
raise RuntimeError('a')
except:
f = sys.exc_info()[2].tb_frame.f_back
traceback.print_list(traceback.extract_stack(f))
a()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment