Python Forum
the fun of debugging - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: the fun of debugging (/thread-10669.html)



the fun of debugging - Skaperen - May-31-2018

in a big script i cannot post, i am running into the infamous UnboundLocalError. to make this more complicated, that is the 2nd time that statement was executed. the 1st time worked. another statement nearby also printed out the value of that variable as being the string 'df'. so i have to figure out how that variable can go from having the value 'df' to not being assigned (as opposed to being assigned None). there are no del statements in the code (i've only ever used del once that i can recall).


RE: the fun of debugging - wavic - May-31-2018

A simplified representation would be good.


RE: the fun of debugging - Skaperen - Jun-01-2018

this is something i need to debug on my own. and i did solve it. it quietly executed a 2nd process of itself when it wasn't supposed to. i wasn't expecting that to happen.