[C++-sig] Announcing pybindgen

Roman Yakovenko roman.yakovenko at gmail.com
Wed Sep 26 22:08:57 CEST 2007


On 9/26/07, Gustavo Carneiro <gjcarneiro at gmail.com> wrote:
>
> I know Py++.  You cannot compare Py++ with PyBindGen.  I would say that
> PyBindGen replaces Boost.Python.  Py++ is a layer on top of Boost.Python.
> Py++ generates Boost.Python module definition sources through automatic
> scanning of C++ header files.  PyBindGen lacks the header files scanning
> feature that Py++ provides, and I really miss that feature in PyBindGen.  I
> hope that someone (maybe me) finds time to work on that for PyBindGen, some
> day...


pygccxml is stand-alone Python package. You are free to integrate it within
your project.

I'm not sure if Py++ is modular enough to be able to receive a different
> code generation backend besides Boost.Python (Roman, feel free to comment
> :).


Some refactoring is needed, but the code generators could share a lot of
code.

Although I like Py++ a lot, I really hate Boost.Python.  Maybe it's because
> of my lack of skill in understanding C++ templates, but I feel like
> Boost.Python hides too many details underneath a layer of cryptic to
> follow set of C++ templates, while I need to see the generated code in order
> to check that memory management details are being declared and implemented
> correctly.


:-), I think you are going to reinvent the wheel here. I guess there are
many reasons why memory management  is complex and you eventually rediscover
all of them

  In addition, to compile Boost.Python based bindings your users need to
> have the boost python library and header files installed.


Completely agree with you. It takes too much time to setup working
environment.

  In contrast, PyBindGen generated extensions only require python
> development header files in order to compile, nothing more.  I also think
> Boost.Python extensions compile to rather large modules...


This is also true.

Good luck with your project and let me know if you need help with pygccxml.


-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070926/8f7fb655/attachment.htm>


More information about the Cplusplus-sig mailing list