proposal, change self. to .

Russ P. Russ.Paielli at gmail.com
Tue Aug 5 14:26:20 EDT 2008


On Aug 3, 4:10 am, "Heiko Wundram" <modeln... at modelnine.org> wrote:
> Am 03.08.2008, 12:51 Uhr, schrieb Equand <equ... at gmail.com>:
>
> > how about changing the precious self. to .
> > imagine
>
> > self.update()
>
> > .update()
>
> > simple right?
>
> What about:
>
> class x:
>
>       def x(self,ob):
>           ob.doSomethingWith(self)
>
> ? Not so simple anymore, isn't it? If you're not trolling, there's

This is not a problem at all. If the OP got what he wanted, "self"
could still be available just as it is now to do what you suggested
above. That would not need to change.

> hundreds of reasons why the explicit self is as it is, and it's not going
> to go away, just as a thread that produced immense amounts of response
> demonstrated around a week ago. Read that, and rethink.
>
> --- Heiko.




More information about the Python-list mailing list