Re: def __init__ question in a class definition

2005-02-08 Thread Steve Holden
M.E.Farmer wrote: Steve Holden wrote: M.E.Farmer wrote: Jeffrey Borkent Systems Specialist Information Technology Services With that kind of credentials, and the fact that you claim you are a system specialists I don't know you have me worried already. I guess for you I just say RTFM. If you

Re: def __init__ question in a class definition

2005-02-07 Thread M.E.Farmer
Steve Holden wrote: > M.E.Farmer wrote: > > >>Jeffrey Borkent > >>Systems Specialist > >>Information Technology Services > > > > > > With that kind of credentials, and the fact that you claim you are a > > system specialists > > I don't know you have me worried already. > > I guess for you I ju

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

Re: def __init__ question in a class definition

2005-02-07 Thread Steve Holden
M.E.Farmer wrote: Jeffrey Borkent Systems Specialist Information Technology Services With that kind of credentials, and the fact that you claim you are a system specialists I don't know you have me worried already. I guess for you I just say RTFM. If you think that is harsh then don't ask a 2n

Re: def __init__ question in a class definition

2005-02-07 Thread Duncan Booth
Miki Tebeka wrote: >> IE: is there any special significance to the __ in this case. > http://docs.python.org/tut/tut.html specifically section 9.6 Also Python Reference Manual, section 2.3.2 Reserved classes of identifiers -- http://mail.python.org/mailman/listinfo/python-list

Re: def __init__ question in a class definition

2005-02-06 Thread Miki Tebeka
Hello Jeffrey, > I have an open source program which i am trying to add to. > > class classname(member,member) > > def __init__(self,list) > self.__list = list > self.refresh = 360 > > my question is what is the __ (double underscore) represent, if > anything,

Re: def __init__ question in a class definition

2005-02-06 Thread M.E.Farmer
>Jeffrey Borkent >Systems Specialist >Information Technology Services With that kind of credentials, and the fact that you claim you are a system specialists I don't know you have me worried already. I guess for you I just say RTFM. If you think that is harsh then don't ask a 2nd grade questio