when and how do you use Self?

Chris Cioffi evenprimes at gmail.com
Thu Nov 3 10:48:28 EST 2005


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 modulix <onurb at xiludom.gro> 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.
> --
> bruno desthuilliers
> python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
> p in 'onurb at xiludom.gro'.split('@')])"
> --
> http://mail.python.org/mailman/listinfo/python-list
>


--
"A little government and a little luck are necessary in life, but only
a fool trusts either of them." -- P. J. O'Rourke



More information about the Python-list mailing list