global a = 3
The issue i see is that Python doesn't have declarations. So you could use the name, a in multiple places. what would this mean:
a = 34
global a = 0
would it mean that the first a was loca, and the second local? or would it be illegal -- glob could only be used on the first invocation? or ??
and frankly, global (should have) limited use anyway -- making it a bit easier to use seems not very helpful.
Christopher Barker, PhD (Chris)
Python Language Consulting
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython