How to browse a C Library with Python

Rafael Sachetto rsachetto at gmail.com
Wed Dec 5 14:26:18 EST 2007


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

To do this on a dynamic library you have to use nm -D /lib/libc.so


-- 
Rafael Sachetto Oliveira

Sir - Simple Image Resizer
http://rsachetto.googlepages.com



More information about the Python-list mailing list