Charles T. Smith wrote: > On Fri, 11 Mar 2016 19:29:20 +1100, Chris Angelico wrote: > >> Usefully? Never. >> >> Simple question - simple answer :) >> >> ChrisA > > > Right, that was the expected answer as well. I just ran into that in > legacy code, checked out the documentation and couldn't really make that > out. So I figured I better ask here before I end up with egg on my face > > :) > > Thanks folks. > > Actually, it would be nice if there were a -lint or -warnings flag > for such cases, a la perl or gcc.
There is an external tool called pylint that among other things detects superfluous global statements. -- https://mail.python.org/mailman/listinfo/python-list