On Sun, Nov 14, 2021 at 6:05 AM Steven D'Aprano <[email protected]> wrote:
> 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. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/ZJ6UGC4UWCSPY2XHRVM6W7CAXFLLWEST/ Code of Conduct: http://python.org/psf/codeofconduct/
