On Aug 3, 5:44 am, Nick Dumas <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> It's also worth noting that you can use a different name for the object
> that represents your class. If you did def __init__(foo):pass, then you
> would be able to access the class's obje
On Aug 3, 4:10 am, "Heiko Wundram" <[EMAIL PROTECTED]> wrote:
> Am 03.08.2008, 12:51 Uhr, schrieb Equand <[EMAIL PROTECTED]>:
>
> > how about changing the precious self. to .
> > imagine
>
> > self.update()
>
> > .update()
>
> > simple right?
>
> What about:
>
> class x:
>
> def x(self,ob):
>
Heiko Wundram:
> > how about changing the precious self. to .
> > imagine
> > self.update()
> > .update()
> > simple right?
I suggest you to start using Ruby instead.
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Nick Dumas <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> It's also worth noting that you can use a different name for the object
> that represents your class. If you did def __init__(foo):pass, then you
> would be able to access
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
It's also worth noting that you can use a different name for the object
that represents your class. If you did def __init__(foo):pass, then you
would be able to access the class's objects with foo.objectname. Using
self is simply the recommended standa
Am 03.08.2008, 12:51 Uhr, schrieb Equand <[EMAIL PROTECTED]>:
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, the
how about changing the precious self. to .
imagine
self.update()
.update()
simple right?
--
http://mail.python.org/mailman/listinfo/python-list