On May 21, 8:12 am, "Silver Rock" <[EMAIL PROTECTED]> wrote:
> yes, that is the way I a solving the problem. using lists. so it seems
> that there is no way around it then..
There's at least one way to do it that I can think of straight away:
selfmodule = __import__(__name__, None, None, (None,))
On 20 May 2007 20:21:52 -0700, George Sakkis <[EMAIL PROTECTED]> wrote:
> On May 20, 10:33 pm, "Silver Rock" <[EMAIL PROTECTED]> wrote:
> > i need to do something like this:
> >
> > ###
> > import wx
> > x=number
> > for i in range(500):
> >"var"+str(i)=ClassXYZ(...,x+i,...)
> >
> > # code
On May 20, 10:33 pm, "Silver Rock" <[EMAIL PROTECTED]> wrote:
> 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):
>Class(object_called_by_the_string("var"+str(i)),...
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):
Class(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.
--
h