Python wrapper for C++ core

Robert Heller heller at
Wed Oct 18 02:09:06 CEST 2006

At 17 Oct 2006 16:05:40 -0700 holly.woodland at wrote:

> Hi All
> Apologies in advance for the pretty basic question - but I can't seem
> to find an answer anywhere else.
> I am developing a fluid sim in C++ and have heard that many people use
> Python in conjunction with C++ for this sort of thing (especially in
> games dev).
> What I can't understand why you would want to do this. Obviously the
> core would be written in C++ (for my purposes anyway) so what parts
> would be written in Python? What is the benefit, in this situation, of
> using Python instead of C++?
> thanks for your help

If they were using Python/Tk to develop a GUI, it makes sense (although
I would use Tcl/Tk, being a Tcl fan).  In either case, SWIG can generate
the interface between C/C++ and Python/Tcl.

> Holly

Robert Heller             -- 978-544-6933
Deepwoods Software        -- Linux Installation and Administration  -- Web Hosting, with CGI and Database
heller at       -- Contract Programming: C/C++, Tcl/Tk

More information about the Python-list mailing list