[Tutor] standard lib methods list

alan.gauld@bt.com alan.gauld@bt.com
Fri, 3 May 2002 17:28:28 +0100


> 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

Alan g.
Author of the 'Learning to Program' web site
http://www.freenetpages.co.uk/hp/alan.gauld