speeding things up with C++

Che Guevara sreckotoroman at gmail.com
Sat May 26 18:35:41 EDT 2007


On May 26, 11:19 am, bullockbefriending bard <kinch1... at gmail.com>
wrote:
> However, I hope someone reading this will be able to tell me that I'm
> being a total pessimist and that in fact it isn't very difficult to do
> what I want to do using SWIG. I'm not asking for a complete solution,
> more like some general pointers from someone who has actually done
> something similar before.

I do stuff like that with ctypes ( http://docs.python.org/lib/module-ctypes.html
)!
I'm sure you can figure out some way to pass/return data to/from your C
++ lib.
The easiest way - use strings or arrays, but if you dig deeper into
ctyles documentation,
I'm sure you will find a better solution!

Good luck,
-- misreckoning




More information about the Python-list mailing list