query: Global variable being modified inside function
positive_passages.docid: 124
positive_passages.text: Is JavaScript a pass-by-reference or pass-by-value language?
negative_passages.docid: 133111
negative_passages.text: How do I share variables between two functions?
negative_passages.docid: 38411
negative_passages.text: Python overwriting variables in nested functions
negative_passages.docid: 109716
negative_passages.text: How to print value of global variable and local variable having same name?
negative_passages.docid: 81478
negative_passages.text: Setting local variables to a function instead of using globals optimize the function
negative_passages.docid: 37271
negative_passages.text: How to access variables defined and declared in one function in another function?
negative_passages.docid: 62927
negative_passages.text: Python scope: "UnboundLocalError: local variable 'c' referenced before assignment"
negative_passages.docid: 14237
negative_passages.text: How to get the global object in JavaScript?
negative_passages.docid: 18605
negative_passages.text: Local variables in nested functions
negative_passages.docid: 142130
negative_passages.text: PHP global in functions
negative_passages.docid: 127540
negative_passages.text: Is it possible to access a function local variable from outside of the function?
negative_passages.docid: 97838
negative_passages.text: Global variables in C are static or not?
negative_passages.docid: 113247
negative_passages.text: scope of local variables of a function in C
negative_passages.docid: 66350
negative_passages.text: Weird closure behavior in python
negative_passages.docid: 2266
negative_passages.text: Why is my variable local in one 'while read' loop, but not in another seemingly similar loop?
negative_passages.docid: 138102
negative_passages.text: Python 3: UnboundLocalError: local variable referenced before assignment
negative_passages.docid: 58106
negative_passages.text: Local variables in Module leak into the Global context