pyvm -- faster python

Robert Kern rkern at ucsd.edu
Wed May 11 16:46:50 EDT 2005


Stelios Xanthakis wrote:

> There are two kinds of C modules: those that do have a knowledge
> of the C API (like sre, tkinter, etc) and those that are just C/C++
> libraries which are simply wrapped as modules.  For the latter there
> are two solutions besides adding a wrapper which makes pyvm appear
> as libpython:
> 	- an advanced ctypes module which will make dlopening libraries
> 	and wrapping their symbols behind python functions, a matter of
> 	python code.  I'm considering this approach to provide things
> 	like 'raw_input'.
> 	- hacking SWIG.  Shouldn't be too hard and will instantly give
> 	us access to wx, qt, etc.

No, writing a pyvm modules for SWIG won't give you compatibility with 
most existing SWIG wrappers. Such wrappers are very, very rarely "pure 
SWIG". Almost all nontrivial wrappers include ad hoc typemaps that use 
the Python C API.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list