[Tutor] global variables
Matthew Ngaha
chigga101 at gmail.com
Thu Aug 22 14:36:24 CEST 2013
I'm always told to avoid using them. I read discussions on the python
irc channel about them but honestly i feel there are some times where
i can't avoid using them. Like where i want to keep track of a state
variable in many different functions that may or may not alter its
value and also not wanting any of the functions to return it to the
caller.
My question is how many global variables did your last decent sized
program have? Also please share any insight you have about them. I do
try to avoid them, but is this always possible?
More information about the Tutor
mailing list