[Python-Dev] would warnings be appropriate for probably-misused global statements?

Alex Martelli aleax@aleax.it
Wed, 6 Nov 2002 17:05:51 +0100


I've recently helped clarify a few users' confusion about what the "global" 
statement is for, and I'm starting to think that it might help overcome that 
confusion if "global" gave warnings when used in probably-inappropriate ways: 
not inside a function, or about a variable that the function does not, in 
fact, bind nor re-bind.  Is there agreement that this might be helpful?


Alex