Marco Mariani wrote:
Piet van Oostrum wrote:
funclist = [func01, func02, func03, ... ]
for i in range(1,n):
funclist[i]()
Or myscript.funclist[i]() from another module.
Ehm, calling a bazillion things in the right order should be a
responsibility of the myscript module anyway.
For example, you could do it like:
myscript.py:
funclist = []
def _included(function):
funclist.append(function)
return function
@_included
def func01():
...
@_included
def func02():
...
def call_all():
for function in funclist:
function()
--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list