Skip to content

Instantly share code, notes, and snippets.

@weissjeffm
Last active August 29, 2015 13:57
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 weissjeffm/9627357 to your computer and use it in GitHub Desktop.
Save weissjeffm/9627357 to your computer and use it in GitHub Desktop.
trace
import trace
t = trace.Trace()
x = 1
def foo():
x = x + 1
t.runfunc(foo)
Truncated Traceback (Use C-c C-x to view full TB):
<ipython-input-19-2c24c7f929de> in foo()
3 x = 1
4 def foo():
----> 5 x = x + 1
6 t.runfunc(foo)
UnboundLocalError: local variable 'x' referenced before assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment