Josiah> As for a solution, I find the "global means 'not local'"
Josiah> proposition is the least undesireable of the possibilities. It
Josiah> suffers from a change in semantics and potential name masking
Josiah> issues...
Pychecker and PyLint both already identify cases where builtins are masked
by locals or module globals (and may identify cases where locals mask module
globals - I don't recall). I suspect both could be generalized in this
regard without a huge effort. That's probably the best place for this sort
of warning.
Skip
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com