Re: Function References
- From: "Diez B. Roggisch" <deets@xxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 16:06:44 +0200
squishywaffle@xxxxxxxxx wrote:
Hello Diez.
May I suggest you move to ctypes for wrapping? It's easier, pure python
and callbacks are already built-in.
I'm pretty new to extending Python in C, I don't understand what
you're saying. Are there any examples or a brief explanation/URL you
could point me to?
Is google dead today?
http://www.google.com/search?q=python+ctypes&ie=UTF-8&oe=UTF-8
First hit.
Ctypes is a since python2.5 built-in module that allows to declare
interfaces to C-libraries in pure python. You declare datatypes and
function prototypes, load a DLL/SO and then happily work with it. No C, no
compiler, no refcounts, no nothing.
And you can pass python-functions as callbacks.
See the module docs for examples.
Diez
.
- Follow-Ups:
- Re: Function References
- From: squishywaffle@xxxxxxxxx
- Re: Function References
- References:
- Function References
- From: squishywaffle@xxxxxxxxx
- Re: Function References
- From: Diez B. Roggisch
- Re: Function References
- From: squishywaffle@xxxxxxxxx
- Function References
- Prev by Date: Re: Function References
- Next by Date: Re: working pylint anyone?
- Previous by thread: Re: Function References
- Next by thread: Re: Function References
- Index(es):
Relevant Pages
|