Re: def __init__ question in a class definition rephrased

2005-02-07 Thread Steven Bethard
Jeffrey Borkent wrote: what is the significance ( if any ) of the __ in these self.xx assignments. Variables with preceding __ are a vague attempt to avoid some types of name collisions in inheritance hierarchies. Any name that starts with a __ will be mangled by prefixing it with _: py> cl

Re: def __init__ question in a class definition rephrased

2005-02-07 Thread Fredrik Lundh
Jeffrey Borkent wrote: > what is the significance ( if any ) of the __ in these self.xx > assignments. > > If i look at chapter 9.5 in the tutorial (v2.3.4) then it talks > about private variables is this the same thing yes. -- http://mail.python.org/mailman/listinfo/python-list

def __init__ question in a class definition rephrased

2005-02-07 Thread Jeffrey Borkent
Hi There, Please let me rephrase the problem as many people misunderstood what i was trying to ask. I know that the __init__ is the class constructor, that was not my question. under the def __init__ are several assignments self.__list = list self.refresh = 360 i wish to add some more assignme