SWIG overhead
Roman Yakovenko
roman.yakovenko at gmail.com
Thu Feb 1 13:12:16 EST 2007
On 2/1/07, Chris Mellon <arkanes at gmail.com> wrote:
> As I understand it, part of the Boost.Python internals is a C++
> wrapper over the Python C api,
That's true.
>and there's no separate code generation
> phase because it uses template magic to generate the wrappers.
Well, actually it depends on the size of the project. If project is
small you can use
Boost.Python without a code generator. For big projects you have to use the code
generator. The advantage is that generated code is pretty readable.
> So
> while obviously the C API is used at some level, it's not visible to
> the wrapper author.
Boost.Python hides it pretty well :-)
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Python-list
mailing list