C++ and Python
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Fri Mar 9 23:47:30 EST 2007
En Fri, 09 Mar 2007 18:16:43 -0300, hg <hg at nospam.org> escribió:
> I'm not very familiar with the technology as I just have had to modify an
> extension here and there.
>
> I guess my question is off topic as a C++ dll / shared lib is not my main
> target but rather C: I need to integrate a printer driver and and would
> like if possible to avoid all of the .h stuff involved with SWIG (I am
> not
> being sarcastic): if I can setup my prototypes directly in python, why go
> through an extra layer ?
>
> Aren't ctypes better suited to such an application ?
Sure, if you have a C (not C++) DLL, using ctypes should be OK.
--
Gabriel Genellina
More information about the Python-list
mailing list