Beginning programming with Python

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


Aahz Maruch wrote:
> 
> In article <38317787.19AFDAF5 at compaq.com>,
> Greg Ewing  <greg.ewing at compaq.com> 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:

http://starship.python.net/crew/mchapman/pycc.el

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 bioreason.com




More information about the Python-list mailing list