[Tutor] standard lib methods list

dman dman@dman.ddts.net
Fri, 3 May 2002 13:26:51 -0500


--ey/N+yb7u/X9mFhi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?
|=20
| Try:
|=20
| for n in dir(__builtins__):
|    if type(eval(n)) =3D=3D 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=3D1

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 :-).

-D

--=20

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
=20
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg


--ey/N+yb7u/X9mFhi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzS1msACgkQO8l8XBKTpRTIiACghl0qghG/K+gxAiqD07qlpQoz
oKYAoIy8GPrjpUgVOVf/JSY9r2LTbzXk
=pIbB
-----END PGP SIGNATURE-----

--ey/N+yb7u/X9mFhi--