Re: when and how do you use Self?

2005-11-07 Thread Ron Adam
Tieche Bruce A MSgt USMTM/AFD wrote: > I am new to python, > > Could someone explain (in English) how and when to use self? > > I have been reading, and haven't found a good example/explanation > > > Bruce Tieche ([EMAIL PROTECTED]) Hi, Sometimes it's hard to get a simple answer to progra

Re: when and how do you use Self?

2005-11-07 Thread Bruno Desthuilliers
Tieche Bruce A MSgt USMTM/AFD a écrit : > Well, thanx for all the ... useful information. > > I thought that I would try, but this has turned out to be a waist of my time. > > Have fun playing with your egos s/your egos/words/ If you can't stand a joke (possibly very bad, but that's another po

Re: when and how do you use Self?

2005-11-07 Thread Magnus Lycka
Tieche Bruce A MSgt USMTM/AFD wrote: > Well, thanx for all the ... useful information. > > I thought that I would try, but this has turned out to be a waist of my time. As with all studying, it might be somewhat time consuming to filter out the useful stuff in a sea of information. You did get co

Re: when and how do you use Self?

2005-11-07 Thread Fredrik Lundh
"Tieche Bruce A MSgt USMTM/AFD" <[EMAIL PROTECTED]> wrote: > Well, thanx for all the ... useful information. > > I thought that I would try, but this has turned out to be a waist of my time. did you perhaps miss that at least three people wrote proper replies to your post? http://article.gm

RE: when and how do you use Self?

2005-11-07 Thread Tieche Bruce A MSgt USMTM/AFD
-list@python.org Subject: Re: when and how do you use Self? Steven D'Aprano a écrit : > On Thu, 03 Nov 2005 20:19:03 +0100, bruno at modulix wrote: > > >>Steven D'Aprano wrote: >> >>>On Thu, 03 Nov 2005 10:14:23 +0100, bruno at modulix wrote: >>>

Re: when and how do you use Self?

2005-11-04 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Tieche Bruce A MSgt USMTM/AFD" <[EMAIL PROTECTED]> wrote: > I am new to python, > Could someone explain (in English) how and when to use self? > I have been reading, and haven't found a good example/explanation is a good explanati

Re: when and how do you use Self?

2005-11-03 Thread Alex Martelli
Tieche Bruce A MSgt USMTM/AFD <[EMAIL PROTECTED]> wrote: ... > I am new to python, > Could someone explain (in English) how and when to use self? A class's methods use 'self' to refer to the object (instance of the class) they're being called on; mostly, they access (get or set) attributes on s

Re: when and how do you use Self?

2005-11-03 Thread Bruno Desthuilliers
Steven D'Aprano a écrit : > On Thu, 03 Nov 2005 20:19:03 +0100, bruno at modulix wrote: > > >>Steven D'Aprano wrote: >> >>>On Thu, 03 Nov 2005 10:14:23 +0100, bruno at modulix wrote: >>> >>> >>> Tieche Bruce A MSgt USMTM/AFD wrote: >I am new to python, > > > >Cou

Re: when and how do you use Self?

2005-11-03 Thread Bruno Desthuilliers
Jeffrey Schwab a écrit : > bruno at modulix wrote: > >> Steven D'Aprano wrote: >> >>> On Thu, 03 Nov 2005 10:14:23 +0100, bruno at modulix wrote: >>> Tieche Bruce A MSgt USMTM/AFD wrote: > I am new to python, > > Could someone explain (in English) how and when to use self? >>

Re: when and how do you use Self?

2005-11-03 Thread Steven D'Aprano
On Thu, 03 Nov 2005 20:19:03 +0100, bruno at modulix wrote: > Steven D'Aprano wrote: >> On Thu, 03 Nov 2005 10:14:23 +0100, bruno at modulix wrote: >> >> >>>Tieche Bruce A MSgt USMTM/AFD wrote: >>> I am new to python, Could someone explain (in English) how and when to use

Re: when and how do you use Self?

2005-11-03 Thread Jeffrey Schwab
bruno at modulix wrote: > Steven D'Aprano wrote: > >>On Thu, 03 Nov 2005 10:14:23 +0100, bruno at modulix wrote: >> >> >> >>>Tieche Bruce A MSgt USMTM/AFD wrote: >>> >>> I am new to python, Could someone explain (in English) how and when to use self? >>> >>>Don't use se

Re: when and how do you use Self?

2005-11-03 Thread Jorge Godoy
bruno at modulix <[EMAIL PROTECTED]> writes: > >>Don't use self. Use other. > > > > > > Are you serious? > > Are you seriously wondering if I am serious ? Hmmm... I hope there's no deadlock in this loop... -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo

Re: when and how do you use Self?

2005-11-03 Thread bruno at modulix
Steven D'Aprano wrote: > On Thu, 03 Nov 2005 10:14:23 +0100, bruno at modulix wrote: > > >>Tieche Bruce A MSgt USMTM/AFD wrote: >> >>>I am new to python, >>> >>> >>> >>>Could someone explain (in English) how and when to use self? >>> >> >>Don't use self. Use other. > > > Are you serious? Are

Re: when and how do you use Self?

2005-11-03 Thread Steven D'Aprano
On Thu, 03 Nov 2005 10:14:23 +0100, bruno at modulix wrote: > Tieche Bruce A MSgt USMTM/AFD wrote: >> I am new to python, >> >> >> >> Could someone explain (in English) how and when to use self? >> > Don't use self. Use other. Are you serious? You don't recommend doing this? def MyClass:

Re: when and how do you use Self?

2005-11-03 Thread Dan Sommers
On Thu, 3 Nov 2005 10:48:28 -0500, Chris Cioffi <[EMAIL PROTECTED]> wrote: > As a point of style: the 'other' identifier should only be used in > Zen Metaclass programming as an implicit reference to the calling > object or as a list of references to all other instances of the class. > Context wi

Re: when and how do you use Self?

2005-11-03 Thread bruno at modulix
Chris Cioffi wrote: as a point of style, top-posting is a Bad Thing(tm) (fixed) > > On 03/11/05, bruno at modulix <[EMAIL PROTECTED]> wrote: > >>Tieche Bruce A MSgt USMTM/AFD wrote: >> >>>I am new to python, >>> >>>Could someone explain (in English) how and when to use self? >>> >> >>Don't use

Re: when and how do you use Self?

2005-11-03 Thread Chris Cioffi
As a point of style: the 'other' identifier should only be used in Zen Metaclass programming as an implicit reference to the calling object or as a list of references to all other instances of the class. Context will make it both clear and obvious which use case is desired. On 03/11/05, bruno at

Re: when and how do you use Self?

2005-11-03 Thread bruno at modulix
Tieche Bruce A MSgt USMTM/AFD wrote: > I am new to python, > > > > Could someone explain (in English) how and when to use self? > Don't use self. Use other. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -

Re: when and how do you use Self?

2005-11-03 Thread Fredrik Lundh
"Tieche Bruce A MSgt USMTM/AFD" <[EMAIL PROTECTED]> wrote: > Could someone explain (in English) how and when to use self? > > I have been reading, and haven't found a good example/explanation consider a class C: >>> class C: ... def method(self): ... print self ...

when and how do you use Self?

2005-11-03 Thread Tieche Bruce A MSgt USMTM/AFD
I am new to python, Could someone explain (in English) how and when to use self? I have been reading, and haven't found a good example/explanation Bruce Tieche ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list