Re: The need to put "self" in every method
- From: Steven Bethard <steven.bethard@xxxxxxxxx>
- Date: Tue, 31 May 2005 10:24:12 -0600
Fernando M. wrote:
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?
py> import this The Zen of Python, by Tim Peters
Beautiful is better than ugly. Explicit is better than implicit. ....
STeVe .
- References:
- The need to put "self" in every method
- From: Fernando M.
- The need to put "self" in every method
- Prev by Date: Re: How do you drive-by-wire a car using Python ?
- Next by Date: DLL load failed: The specified procedure could not be found
- Previous by thread: Re: The need to put "self" in every method
- Next by thread: Re: The need to put "self" in every method
- Index(es):
Relevant Pages
|