In article <[email protected]>, Piet van Oostrum  <[email protected]> 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 ([email protected])           <*>         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

Reply via email to