Re: The need to put "self" in every method
- From: Steve Holden <steve@xxxxxxxxxxxxx>
- Date: Tue, 31 May 2005 12:06:44 -0400
Fernando M. wrote:
The reason can be found in the output from the python statement "import this". Explicit is better than implicit.Hi,
i was just wondering about the need to put "self" as the first parameter in every method a class has because, if it's always needed, why the obligation to write it? couldn't it be implicit?
Or is it a special reason for this being this way?
Thanks.
regards Steve -- Steve Holden +1 703 861 4237 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/
.
- References:
- The need to put "self" in every method
- From: Fernando M.
- The need to put "self" in every method
- Prev by Date: The need to put "self" in every method
- Next by Date: Dr. Dobb's Python-URL! - weekly Python news and links (May 31)
- Previous by thread: The need to put "self" in every method
- Next by thread: Re: The need to put "self" in every method
- Index(es):
Relevant Pages
|