One of the more annoying and superfluous Python is the new style calls to the superclass, which involves retyping both the name of the class and the function.
This patch adds a new command to python-mode that inserts the empty super call with the appropriate class and function name, leaving the cursor in position to start typing arguments. I have it bound to \C-c\C-f in this patch. The patch also adds a whole new section to the mode documentation, since it's not really like any other command.
Example:
class hello(object):
def world(slef):
|
Then the typing \C-c\C-f would insert "super(hello,self).world()" at the given insertion point.
Patch for python-mode.el