Re: The difference between __XX__ and XX method

2008-09-08 Thread Christian Heimes
AON LAZIO wrote: Hi, Pythoners. I would like to know that in some class, it uses __XX__ but in some it uses only XX for example, class Test: def __som__(self): ... def som(self): ... What does "__XX__" make the method different from XX? Thanks in advance

Re: The difference between __XX__ and XX method

2008-09-08 Thread James Mills
Hi, This is convention only and typically used to denote that a particular class attribute is "private". Though note, there is really no such thing in Python. cheers James On Tue, Sep 9, 2008 at 7:31 AM, AON LAZIO <[EMAIL PROTECTED]> wrote: > Hi, Pythoners. > I would like to know that in s