[Tutor] basic import question
Magnus Lyckå
magnus@thinkware.se
Tue Jul 8 16:54:05 2003
At 14:39 2003-07-08 -0400, Chris Kassopulo wrote:
>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 ?
Do you understand why it's only run once if you
just execute the program instead of importing it?
If so, what made you think importing it would make
it behave differently?
--
Magnus Lycka (It's really Lyckå), magnus@thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The Agile Programming Language