Re: [Tutor] about modules, classes, methods, functions

2007-09-02 Thread Alan Gauld
"jim stockford" <[EMAIL PROTECTED]> wrote > If I write a little .py file, its name is __main__ > > assuming no big nit-picks in the claim above, > is __main__ a class? No, its the name of your module when its run as a script rather than imported. Its assigned by the interpreter. (At least i ass

Re: [Tutor] about modules, classes, methods, functions

2007-09-02 Thread Kent Johnson
jim stockford wrote: > I've gotten red-eyed looking through google pages > to find answers. I've read the python.org docs and > tutorials entirely (some parts very quickly). > > If I write a little .py file, its name is __main__ > > assuming no big nit-picks in the claim above, > is __main__ a cl

[Tutor] about modules, classes, methods, functions

2007-09-02 Thread jim stockford
I've gotten red-eyed looking through google pages to find answers. I've read the python.org docs and tutorials entirely (some parts very quickly). If I write a little .py file, its name is __main__ assuming no big nit-picks in the claim above, is __main__ a class? What exactly does it mean "mod