[Geany] calltips for python?
Ing. Nestor Alonso Torres
nestor at xxxxx
Thu Feb 21 13:46:58 UTC 2008
On Wed, 2008-02-20 at 13:39 +0100, Enrico Tröger wrote:
> > I still don't know how other python IDEs succeed in providing this kind
> > of autocompletion for any module that one imports.
> I assume they are parsing the python modules in some way and extract
> the necessary information. (this is only a guess without any knowledge)
Maybe using the function "dir":
>>> import os.path
>>> dir(os.path)
['__all__', '__builtins__', '__doc__', '__file__', '__name__',
'_resolve_link', '_varprog', 'abspath', 'altsep', 'basename',
'commonprefix', 'curdir', 'defpath', 'devnull', 'dirname', 'exists',
'expanduser', 'expandvars', 'extsep', 'getatime', 'getctime',
'getmtime', 'getsize', 'isabs', 'isdir', 'isfile', 'islink', 'ismount',
'join', 'lexists', 'normcase', 'normpath', 'os', 'pardir', 'pathsep',
'realpath', 'samefile', 'sameopenfile', 'samestat', 'sep', 'split',
'splitdrive', 'splitext', 'stat', 'supports_unicode_filenames', 'walk']
>>>
Getting function description:
>>> print os.path.isfile.__doc__
Test whether a path is a regular file
But I still don't know how to extract the parameters that any function
needs...
Hope this help ;-), I really miss "real autocompletion" in Python.
Tonight I'll take a look inside pydev. Pydev autocompletion is very very
good, but I don't have RAM enough for Eclipse at work :-/.
Best Regards!
nat:.
More information about the Users
mailing list