How do I make a constant global variable in Python Please
scherbi at bam.com
Mon Apr 17 11:56:43 EDT 2000
declare the variable as global inside the function you wish to use the
global variable, else you just create a new local variable of the same
foo = 1
#use the global foo
#this function has it's own foo
foo = 2
cmfinlay at magnet.com.au wrote:
> How do I make a constant global variable in Python Please.
> or just a constant.
> or just a global.
> I bought a Python Book. however I can't find this info in it.
> Please e-mail me at cmfinlay at magnet.com.au
More information about the Python-list