Beginning programming with Python

Mitch Chapman chapman at
Tue Nov 16 19:56:13 EST 1999

Aahz Maruch wrote:
> In article <38317787.19AFDAF5 at>,
> Greg Ewing  <greg.ewing at> wrote:
> ...
> >Well, not quite - you can forget the "self" in method
> >declarations fairly easily...
> I don't seem to have that problem; my fingers have learned to
> automatically type "(self" whenever "def" is indented.  ;-)

If you use [X]Emacs you can use python-mode functions
to generate function and method templates -- including 
automatic insertion of the leading "(self" on method defs:

This is old code, and word is that use of template.el would have 
greatly simplified it.  But it works for me.

Mitch Chapman
chapman at

More information about the Python-list mailing list