Python assignment loop

Silver Rock silverfrequent at gmail.com
Sun May 20 22:33:24 EDT 2007


i need to do something like this:

###
import wx
x=number
for i in range(500):
   "var"+str(i)=ClassXYZ(...,x+i,...)

#.... code
y=number
for i in range(y):
   ClassAAAA(object_called_by_the_string("var"+str(i)),...)

###
i can't figure out how to do this, and could not find it on the web.
c.



More information about the Python-list mailing list