why a main() function?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Mon Sep 18 17:38:12 EDT 2006


Others have already told you the most important things.

There is another secondary advantage: the code inside a function runs
faster (something related is true for C programs too). Usually this
isn't important, but for certain programs they can go 20%+ faster.

Bye,
bearophile




More information about the Python-list mailing list