why a main() function?

Paul Rubin http
Tue Sep 19 10:56:36 EDT 2006


"Diez B. Roggisch" <deets at nospam.web.de> writes:
> > Python stores local variables in an indexed array, but globals in a
> > dictionary. Looking things up by index is faster than looking them up by
> > name.
> 
> Interesting. How is the index computed? I would have assumed that locals()
> is somehow used, which is a dicht.

They're static indexes assigned at compile time.



More information about the Python-list mailing list