[Tutor] c++ on python

Alan Gauld alan.gauld at btinternet.com
Wed Mar 12 23:05:53 CET 2014


On 12/03/14 16:49, Stefan Behnel wrote:
> Alan Gauld, 12.03.2014 10:11:
>> If it were a library then you would have to call
>> the individual C++ functions directly using
>> something like ctypes, which is usually more
>> complex.
>
> ctypes won't talk to C++, but Cython can do it quite easily.

I thought it would work provided the interface functions
were declared as C functions? That might involve
writing a wrapper around it but that is usually
trivial if you have to compile the source anyway.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list