The module is called dl :
>>> import dl
>>> dl.open("libfoo.so")
<dl.dl object at 0xb7f580c0>
>>> dl.open("libfoo.so").sym('bar')
1400432
... although this is nasty, and you might want to use ctypes or an extension module.
Edit
Apparently dl is deprecated in 2.6, so you might want to use ctypes, which has a better API.
source
share