C-h f equivalent

Gerhard Häring gerhard.haering at opus-gmbh.net
Thu Mar 6 08:59:14 EST 2003


Glyn Millington <glyn at millingtons.org> wrote:
> [...] Now when I want to put something together in elisp, in Xemacs
> all I have to do is C-h f and then feed in the function name and I
> get the goods on a particular function. C-h v does the same for
> variables. [...]

Check out the help and dir builtin functions.

#v+
>>> import os
>>> help(os.rename)
Help on built-in function rename:

rename(...)
    rename(old, new) -> None
    Rename a file or directory.

>>> x = {}
>>> dir(x)
['__class__', '__cmp__', '__contains__', ... , 'setdefault', 'update',
'values']
>>>
#v-

There may be a shortcut that does just from Emacs' Python mode.

-- Gerhard




More information about the Python-list mailing list