COM or modules

Raymond Hettinger python at rcn.com
Sat Aug 10 02:15:25 CEST 2002


Both COM and Python wrappers run very fast with the wrappers perhaps having
an advantage (counting the miniscule COM system overhead, the wrappers
already built into win32all, and the COM interface you have to write for
your program).

However, in terms of programmer time, wrapping is likely to be substantially
faster, especially if you use a tool like SWIG ( http://www.swig.org/ ) or
Pyrex ( http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ ).


Raymond Hettinger


"Totte Karlsson" <mtk at u.washington.edu> wrote in message
news:aj13mr$1iu4$1 at nntp6.u.washington.edu...
> Hi,
> I have been writing on a C++ library for several years for handling
> molecular geometry and processing of spectrometer data. I'm using these
> libraries in a windows application written in C++ under C++Builder.
> Now I want to supply to the user a scripting interface to access some of
the
> underlying objects that I'm using, like molecules and data and so on. The
> script interface will be as python.
>
> My question is, what would be the fastest way to allow the user to access
> some of  these objects, living in the windows application as C++ objects,
> from a python command window. Rewriting the application and turn it into a
> COM application or writing wrapper code and create python mocules?
> regards
> /totte
>
>
>





More information about the Python-list mailing list