[Tutor] standard lib methods list
Andrei Kulakov
ak@silmarill.org
Sat, 4 May 2002 10:01:46 -0400
On Fri, May 03, 2002 at 01:26:51PM -0500, dman wrote:
> On Fri, May 03, 2002 at 05:28:28PM +0100, alan.gauld@bt.com wrote:
> | > I'm making a list of keywords for vim completion and I need a list of
> | > all methods in standard lib. Is there a list somewhere with all of
> | > them, or should I read libref and make it manually?
> |
> | Try:
> |
> | for n in dir(__builtins__):
> | if type(eval(n)) == type(open):
> | print n
>
> For built-in names, just set this in your .vimrc :
>
> " this takes effect when the syntax file is loaded
> let python_highlight_all=1
>
> It will highlight names like 'open' and 'Exception'.
>
> I don't know of an easy way to get the rest of the standard library,
> and I'm not even sure having that much color would be helpful :-).
>
But I'm not talking about colors! I want to use ^X^K command in vim to
auto-complete a list of keywords.. i.e. string.startswith, math.frexp,
and so on - all methods in standard lib.
>
> -D
>
> --
>
> The heart is deceitful above all things
> and beyond cure.
> Who can understand it?
>
> I the Lord search the heart
> and examine the mind,
> to reward a man according to his conduct,
> according to what his deeds deserve.
>
> Jeremiah 17:9-10
>
> GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
>
--
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org