In article <m263h3vadt....@cs.uu.nl>, Piet van Oostrum <p...@cs.uu.nl> wrote: > >Others have suggested getattr. I think a cleaner (more pythonic) way >would be: > >funclist = [func01, func02, func03, ... ] >for i in range(1,n): > funclist[i]()
Go to all that trouble, you might as well make it easier: for func in funclist: func() -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair -- http://mail.python.org/mailman/listinfo/python-list