How to know the starting point
Steve Holden
steve at holdenweb.com
Wed Sep 19 08:22:11 EDT 2007
Raj kumar wrote:
> Hi,
> I need help regarding the starting point in python project,
> As we can find main() function in java class to know the starting class
> in java,
> what is the starting point in python project?
> How to find the starting point.
> Thank you
The starting point is the top of the file. Class and def statements are
executable, and bind their names to the definitions. The bodies are this
compiled, but the compiled code is only executed when a call is made
(which avoids forward referencing problems, by and large: names are
late-bound).
So the interpreter just starts at the top and runs through the code in
sequence.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Sorry, the dog ate my .sigline
More information about the Python-list
mailing list