Python - What priority does global have?
I'm a bit confused about globals when it comes to packages using other packages. From a quick google search; there's not much that explains. Simply put: at what level is a variable "globalized" when using global ? Is it at the module level, package level, or interpreter level? Ie, in a setup such as this: <Package> |- __init__.py |- Module.py |- Module2.py and there is a global statment used within Module.py, is the variable globalized for just that module, or the entire package (including Module2.py and or __init__.py), or at the interperter level (for anything being run in the interpreter).