swig or not to swig ?

Darrell news at dorb.com
Mon Apr 5 14:38:40 EDT 1999


Didn't have much luck with bgen.
modulator seems handy, Is there a reason to prefer swig ?


Darrell <news at dorb.com> wrote in message
news:kZ6O2.1351$8m5.2222 at newsr1.twcny.rr.com...
> As is always the case I found the dl module right after making this post.
> import imp exposes load_dynamic
>
> It doesn't look like a general purpose shared lib interface.
> So now I'm looking at bgen in the tools directory.
>
> Here's a doc string from there.
> """\
>
> Tools for scanning header files in search of function prototypes.
>
> Often, the function prototypes in header files contain enough information
> to automatically generate (or reverse-engineer) interface specifications
> from them.  The conventions used are very vendor specific, but once you've
> figured out what they are they are often a great help, and it sure beats
> manually entering the interface specifications.  (These are needed to
> generate
> the glue used to access the functions from Python.)
>
> In order to make this class useful, almost every component can be
> overridden.
> The defaults are (currently) tuned to scanning Apple Macintosh header
files,
> although most Mac specific details are contained in header-specific
> subclasses.







More information about the Python-list mailing list