How to browse a C Library with Python

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Dec 5 13:22:23 EST 2007


En Wed, 05 Dec 2007 12:32:31 -0300, georg.heiss <georg.heiss at gmx.de>  
escribi�:

> with Python it is simple to call direct functions from c-librarys.
> Is there a way to browse over a library i.e. '/lib/libc.so' with
> python, to see all possible functions in a library?

You could use the subprocess module to execute 'nm /lib/libc.so' and look  
at lines with type T.

-- 
Gabriel Genellina




More information about the Python-list mailing list