a clarification on the "global" statement sought
Peter Otten
__peter__ at web.de
Fri Mar 11 04:23:25 EST 2016
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.
More information about the Python-list
mailing list