global name is not defined - error

a a at tempinbox.com
Wed Jun 28 00:44:12 EDT 2006


What I want
---------------
I want to create a list of items from a function operating on an array
of strings


What I did
-----------------
list=["s0","s1","s2"]
l=len(list)
	for i in range(l):
				d_list[i]=f.do(list[i])
				print d_list[i]

Error:
------
global name 'd_list' is not defined
Python 	c:\test.py in newClass, line 30

Please help me out
thanks
-a




More information about the Python-list mailing list