[Tutor] basic import question

Chris Kassopulo ckasso@sprynet.com
Tue Jul 8 14:09:08 2003


Greetings,

A very basic question occurred to me:

def main():
    print "hello world"
main() 

If "import mymain" runs mymain completely from the
top down, why doesn't this run twice, once for the
import and once for the call ?

>>> import mymain
hello world
>>> 

Chris