Question about scope

Tim Daneliuk tundra at tundraware.com
Fri Jul 6 00:20:02 CEST 2001


Chris Barker wrote:
> Essentially you have only read-only access to immutable global
> variables. Mutable variables you can change, because you are not
> reassigning them, so you could do:
> >>> FLAG = [TRUE]
> >>> def FlagFalse():
> ...     FLAG[0] = FALSE
> ...
> >>> FLAG
> [1]
> >>> FlagFalse()
> >>> FLAG
> [0]
> 

Got it and it makes sense too....

Thanks to all who answered here and privately...

-- 
------------------------------------------------------------------------------
Tim Daneliuk
tundra at tundraware.com



More information about the Python-list mailing list