Deprecate self

Dave LeBlanc whisper at oz.net
Wed Apr 18 12:35:45 EDT 2001


Said reasons being?

Sending me money turns out to be very useful for a variety of
reasons... convinced?

Dave LeBlanc

On Wed, 18 Apr 2001 15:18:57 GMT, "Fredrik Lundh"
<fredrik at pythonware.com> wrote:

>Dave LeBlanc wrote:
>> Since self is used for every method of every class, isn't it a bit
>> redundant? I don't know of another OO language that makes you manually
>> carry around the "this"/"self" pointer/reference...
>>
>> Of course being new around here, i'm unaware if this has been hissed
>> over in depth previously :-)
>
>http://www.python.org/doc/FAQ.html#6.7
>
>    Q. Why must 'self' be declared and used explicitly in
>    method definitions and calls?
>
>    A. So, is your current programming language C++ or
>    Java? :-) /.../ The idea was borrowed from Modula-3.
>    It turns out to be very useful, for a variety of reasons
>    /.../
>
>Cheers /F
>
>




More information about the Python-list mailing list