[Tutor] Global Gotchas (was Global Variable Gotcha)
Tim Johnson
tim@johnsons-web.com
Tue Jun 24 13:52:23 2003
* Neil Schemenauer <nas-pytut@python.ca> [030624 09:29]:
> The scope of globals in Python are limited to the module. In general,
> using global variables is bad style. It's better to pass arguments to
> functions as necessary.
>
> Neil
Hi Neil:
As a season software developer, (although a relative
newcomer to python) I'm well aware of both the
pitfalls of using Global names,object,variables
constants - and the advantages also.
Perhaps I should have eliminated the word 'variable'
from the subject. I would still like to have my
question answered, and I intend to be fully informed
on all caveats as well.
regards
--
Tim Johnson <tim@johnsons-web.com>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com