Re: How to browse a C Library with Python

2007-12-07 Thread georg.heiss
On 5 Dez., 21:03, "Rafael Sachetto" <[EMAIL PROTECTED]> wrote: > This could be a solution > > import commands > > callables = commands.getoutput("nm -D /lib/libc.so.6 | egrep ' T ' > ").split("\n") > callables = [c.split()[2] for c in callables] > > print callables > > On Dec 5, 2007 5:26 PM, Rafae

How to browse a C Library with Python

2007-12-05 Thread georg.heiss
Hello, 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? #!/python import dl, time i = 1 line = "Python ist geil, weil ich direkt auf C librarys zugreifen kann! \n"