Do I always have to write "self." ?

Moshe Zadka moshez at math.huji.ac.il
Sat Apr 29 04:15:35 EDT 2000


On Sat, 29 Apr 2000 jsolbrig at my-deja.com wrote:

> Actually,
> What I'd like to see would for "self" to an official keyword rather than
> simply a convention. The more things that are "conventional" but not
> required, the more potential there is for occasional bugs.
> And occasional bugs are the WORST.

Here's a solution:
Search the deja-news archives for "selfnanny", and run it over your code.
It will warn you about all methods not beginning with "self".

--
Moshe Zadka <mzadka at geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list