mysterious buggy behavior
Andrea Griffini
agriff at tin.it
Sun Jan 9 09:51:49 EST 2005
On 8 Jan 2005 20:40:37 -0800, sean_mcilroy at yahoo.com (Sean McIlroy)
wrote:
>def newGame():
> BOARD = [blank]*9
> for x in topButtons+midButtons+botButtons: x['text'] = ''
Do you know that "BOARD" here is a local variable and has nothing
to do with the global BOARD ? You can change that by doing either
BOARD[:] = [blank]*9
or
global BOARD
BOARD = [blank]*9
HTH
Andrea
More information about the Python-list
mailing list