Why self?
Just
just at xs4all.nl
Fri Jul 5 05:51:56 EDT 2002
In article <cf0ad9fb.0207050136.633e9b91 at posting.google.com>,
jolsen at mailme.dk (Jesper Olsen) wrote:
> Why is it necessary to use a "self" argument to class methods in python?
>
> To me it seems a bit like doing object oriented programming in C...
>
> Why not make it implicit like "this" in C++?
>
> I do not find it usefull that I can give it my own name.
>
> So, is it just legacy or is there a reason for this convention?
http://www.python.org/cgi-bin/faqw.py?req=show&file=faq06.007.htp
Just
More information about the Python-list
mailing list