History of 'self' and why not at least 'my'?
Steven Majewski
sdm7g at Virginia.EDU
Fri Jan 11 14:41:23 EST 2002
On Fri, 11 Jan 2002 James_Althoff at i2.com wrote:
>
> Paul Rubin wrote:
> >Oleg Broytmann <phd at phd.pp.ru> writes:
> >> "Self" was borrowed from Object Pascal family (Modula-3, I think).
> >
> >And also Smalltalk and maybe even Simula.
>
> Smalltalk was the first to use "self". Simula used/uses "this".
>
As a homage to Intercal, and to promote a more sensitve, less selfish
Python programming style, I propose we change the convention to use
"please" instead of "self", as in:
def somemethod( please, arg ):
please.append(arg)
please.sort()
please.reverse()
It would sure make my day of reading code more pleasant!
-- Steve
More information about the Python-list
mailing list