A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/116137.html below:

Deprecate self

Deprecate self Deprecate selfMartin von Loewis loewis at informatik.hu-berlin.de
Fri Apr 20 02:18:27 EDT 2001
whisper at oz.net (Dave LeBlanc) writes:

> Smalltalk never requres the declaration of self as an arguement to a
> method. self is only used to identify the target (variable or method
> invocation) as being local to the caller (i.e. in it's own class
> scope). It's been awhile, so I don't recall if it's mandatory in that
> context or not.

It's been a while for me as well, but: I thought it required self for
message sent to itself, and required not to use self for instance
variables:

name
    "Answer the name of the file identified by the receiver"
    ^name

Regards,
Martin

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4