awesome. thanks for the advice! >> how do I change global variables within a function: >> > > by declaring them as global. > See my tutorial topic: "Whats in a Name?" for a discussion of this. > >> ################################## >> VAR = "TEST" >> >> def m(): >> VAR="no test" > > creates a new variable insidethe function. > > def m(): > global VAR > VAR = 'no test' > > now changes the global(or at least module scope) VAR. > > Alan G. >
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
