From: Simon B. <si...@ar...> - 2006-07-04 11:48:02
|
On Mon, 03 Jul 2006 16:41:11 -0600 Fernando Perez <Fer...@co...> wrote: > > So I'd like to know if SWIG is really the best way out in this particular case > (and any advice on taking advantage of the array interface via SWIG would be > appreciated), or if ctypes or pyrex could be used here. I'm quite happy using > pyrex in other contexts, but I know it doesn't directly support C++. However, > since I have access to all the code, perhaps a pure C layer could be used to > bridge the C++/pyrex gap. Or given the recent praise for ctypes, perhaps that > can be an option? Pyrex can handle some C++. Eg. make objects, and call methods. You will need to search the pyrex email archives for all the tricks to get this to work. Simon. |