[Tutor] Two quick, easy questions ...

Alan Colburn aicolburn@yahoo.com
Fri Jan 17 17:18:03 2003


Hi all --

I'm hoping to clean up two little deficiences in my
Python knowledge, if you have the time for a quick
response.

First, sometimes I see methods that begin with a
double underscore in their definition statements:
     def __newMethod(self):
Often, but not always, the statements end with another
double underscore:
     def __init__(self):
What's the effect of the leading double underscore?

Second, sometimes I also see methods or classes whose
input variables include "keywds" and/or "args," in
each case preceeded by one or two *'s. I'd love to get
a quick lesson about what's going on there.

As always, thanks for taking the time to respond to my
posts. I appreciate it! -- Al C.



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com