python and loading libraries
Dave Kuhlman
dkuhlman at rexx.com
Mon Dec 16 18:11:57 EST 2002
mitscher dubreus wrote:
>
> Hi folks,
>
> does somebody knows if it is possible to load a library from Python (.so
> on Linux or .dll on Win)?
>
> If this is possible can somebody tell me how please.
If you are implementing your library from scratch, read "Extending and
Embedding the Python Interpreter":
http://www.python.org/doc/current/ext/ext.html
If you already have C/C++ source code for an existing library, take a look
at SWIG:
http://www.swig.org/
- Dave
--
Dave Kuhlman
dkuhlman at rexx.com
http://www.rexx.com/~dkuhlman
More information about the Python-list
mailing list