Re: C++ and Python



On 30 Mar 2006 23:01:21 -0800, marc.wyburn@xxxxxxxxxxxxxx
<marc.wyburn@xxxxxxxxxxxxxx> wrote:
I've been learning to write VST plugins in C++ and would like to switch
back to Python. The first step of writing the plugin is to import the
C++ header files from the Steinberg SDK. How can I do this in Python.
I've tried looking at SWIG but didn't really understand what it was
trying to do. Should I be using SWIG to create Python versions of
the classes and then go from there or does it create glue code to talk
to the classes.

Hi. My advice is try to use boost.python library.
http://www.boost.org/libs/python/doc/tutorial/doc/html/index.html
There are also few code generators available for it: pyplusplus and Pyste.

--
http://mail.python.org/mailman/listinfo/python-list



--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
.



Relevant Pages

  • [PATCH 2/2 V2] tracecmd: Start of a tracecmd swig wrapper for python
    ... Subject: tracecmd: Start of a tracecmd swig wrapper for python ... new file mode 100755 ...
    (Linux-Kernel)
  • Re: OpenGL
    ... It was originally written in pure Python C-extension code, then Tarn rewrote it using SWIG a few years ago. ... OpenGL-ctypes is in the PyOpenGL CVS repository, it's a ctypes re-re-implementation of the same Python API to OpenGL. ... Basically any array type can be registered with handlers that let you tell the system how to do basic operations; get an array's size, shape, data-type, convert to a given data-format, build an "empty" array of a given size, that kind of thing. ...
    (comp.lang.python)
  • Re: Python Memory Leak using SWIG
    ... I then call it from python like so: ... returned is a pointer to the data. ... tell SWIG to delete the data, and return the structure some other way? ... // set the dimensions for this scale & angle ...
    (comp.lang.python)
  • Re: [PATCH 2/2 V2] tracecmd: Start of a tracecmd swig wrapper for python
    ... Subject: tracecmd: Start of a tracecmd swig wrapper for python ... new file mode 100755 ...
    (Linux-Kernel)
  • With pyMinGW
    ... It has stopped the compilation with: ... Anyway, probably 98% was compiled and this Python works, I have tried ... I have decompressed SWIG and put it in a temporary Path. ... MinGW-compiled Python + minGW + SWIG for people using Windows that want ...
    (comp.lang.python)