python on unix [getting started]
Alex Martelli
aleax at aleax.it
Sun Nov 17 13:46:37 EST 2002
dsavitsk wrote:
...
> So perhaps the question is, how does one write a wrapper for using a
> library with python? (I see there is a xmms wrapper, but I don't have X
> installed, so I assume that that is not an option) again, on win32, it is
> simple enough to use either windll or even vb to declare non-COM functions
> and write COM
> wrappers to them. Where would I look to do this on unix?
You have MANY options, including SWIG, raw Python/C API, etc.
Perhaps the most fascinating one is Greg Ewing's pyrex,
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ --
Michael JasonSmith's "Quick Guide" shows how to use pyrex
to wrap a couple of Unix libraries, too.
Alex
More information about the Python-list
mailing list