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 "module" and how
is that different from a class.

Is it sufficient to define a class as some executable
code that gets run when it's loaded? Someone has
so defined, but I don't think it's sufficient.

classic definition of a function is some code that
takes arguments and returns a single value. What's
the definition of a function in python?

how is a method different from a function? Is it
just that a method is a member of a class, i.e. can
a class have both methods and functions?

thanks in advance.
jim

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to