On Apr 17, 5:00 pm, "Stefano" <stef...@vulcanos.it> wrote: > How can i execute my func in the code ? > > import myscript > for i in range(1,n): > myscript.func??
for i in range(1,n): getattr(myscript, 'func%d' % i)() -- http://mail.python.org/mailman/listinfo/python-list