Listing functions in a file IN ORDER
ialbert at mailblocks.com
Wed Jun 30 22:32:41 CEST 2004
Ian Sparks wrote:
> I have a python file with a number of functions named with the form doX so :
> The order these are executed in is important and I want them to be executed top-down.
IMHO making the order in which the functions are defined in a module
define the order in which they will be called upon in another program
seems to be an awkward solution.
You are encoding program logic into layout information thus
solving the problem of 'forgetting about a function' by creating
a more devious one.
More information about the Python-list