Why does Python recognize certain variables which are outside of the body function (example with a list) but not others?
1462
UnboundLocalError on local variable when reassigned after first use
50629
Confusing [...] List in Python: What is it?
5843
Why do people rule out local hidden variables?
76210
What does it mean if a Python object is "subscriptable" or not?
61828
What is the Python equivalent of static variables inside a function?
134363
Why does the global variable exist here, where it was declared only in Module?
104468
Clear complains that a subscripted variable is not a symbol or a string?
101063
List comprehension rebinds names even after scope of comprehension. Is this right?
67563
How are POST and GET variables handled in Python?
142412
How to get/set local variables of a function (from outside) in Python?
127540
Is it possible to access a function local variable from outside of the function?
27902
What is the purpose of the single underscore "_" variable in Python?
93504
Able to see a variable in print_r()'s output, but not sure how to access it in code
63077
Why can I access my private variables of the "other" object directly, in my equals(Object o) method
91006
Why can I refer to a variable outside of an if/unless/case statement that never ran?
73992
Assigning values to a list of variable names
97775
Why does python use two underscores for certain things?