While everyone is saying what they want in Python :)
Jim Richardson
warlock at eskimo.com
Sun Feb 4 13:44:07 EST 2001
On Sun, 04 Feb 2001 08:20:24 -0800,
Daniel Klein, in the persona of <danielk at aracnet.com>,
brought forth the following words...:
>On Sun, 04 Feb 2001 14:19:04 +0000, Jay O'Connor <joconnor at cybermesa.com>
>
>That's cos Smalltalk returns 'self' by default when a there is no explicit
>return value. This can be done in Python if your 'set' methods return 'self'
>instead of 'None'. For example:
can someone explain to me what exactly "self" is for? I just don't get it.
(I am trying to learn this language, but this puzzles me.) Every time I think I
get it, I find proof otherwise :)
--
Jim Richardson
Anarchist, pagan and proud of it
WWW.eskimo.com/~warlock
Linux, because life's too short for a buggy OS.
More information about the Python-list
mailing list