Get the class name

Carl Banks pavlovevidence at gmail.com
Mon Jun 8 04:13:47 CEST 2009


On Jun 7, 1:14 pm, Kless <jonas.... at googlemail.com> wrote:
> Is there any way of to get the class name to avoid to have that write
> it?
>
> ---------------
> class Foo:
>    super(Foo, self)
> ---------------
>
> * Using Py 2.6.2

If you are using emacs you can use the put the following elisp code in
your .emacs file, defines a command to automatically insert the a
super call with the class and method name filled in:

http://code.activestate.com/recipes/522990/


Carl Banks



More information about the Python-list mailing list