global name is not defined - error - but for array

a a at tempinbox.com
Wed Jun 28 02:02:37 EDT 2006


def fn():
     for i in range(l)
           global count
           count[i]= ....

how do i declare count to be global if it is an array

subsequently i should access or define count as an array

error:
global name 'count' is not defined


thanks
-a




More information about the Python-list mailing list