a clarification on the "global" statement sought

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Mar 11 03:31:22 EST 2016


On 11/03/2016 08:13, Charles T. Smith wrote:
> When might a "global" statement be used in the outermost level of a module?

Never. Hopefully this 
http://www.python-course.eu/python3_global_vs_local_variables.php can 
explain it better than I can :)

>
> (whereby, I assume a module is equivalent to a python file, correct?)

Correct.

>
> TIA for any thoughts.
>
> cts
>

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list