Easier to wrap C or C++ libraries?

argo785 at gmail.com argo785 at gmail.com
Sat Feb 14 20:37:01 CET 2009


On Feb 14, 12:14 pm, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
>
> The answer is easy: if you use C, you can use ctypes to create a wrapper
> - with pure python, no compilation, no platform issues.
>
> Which IMHO makes a strong point for C - if you need OO, it's bolted on
> easily using Python itself, by creating some nice wrapper classes.
>

Thanks for the replies, everyone.

After posting I went back and reviewed some of my old C books as well
as the C++ ones. It's interesting and instructive to look back at C++
after you've used languages like Python for a while. I'd forgotten how
complicated C++ code can get.



More information about the Python-list mailing list