Why Python does not see a global variable and tells me in a function that it is undefinied local one?
951
Using global variables in a function
152174
How to declare a global variable in php?
58982
to Global Variables inside functions
12683
How to access a local variable from a different function using pointers?
55989
Why isn't rc.local executed?
99196
How can I access local scope dynamically in javascript?
112198
Global Variables vs. Local Variables
152187
Python imports across modules and global variables
67487
Javascript equivalent of Python's locals()?
40600
How to access a standard-library module in Python when there is a local module with the same name?
58974
Getting "global name 'foo' is not defined" with Python's timeit
131165
Python: NameError: global name 'foobar' is not defined
129423
How to change a global variable from within a function?
27136
Reference: What is variable scope, which variables are accessible from where and what are "undefined variable" errors?
100152
Can not increment global variable from function in python
60938
How to dynamically create a local variable?
81478
Setting local variables to a function instead of using globals optimize the function