Last active
August 29, 2015 13:57
-
-
Save weissjeffm/9627357 to your computer and use it in GitHub Desktop.
trace
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
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