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