Re: [C++-sig] Advice sought on making a large C++ application a Python extension

2010-09-15 Thread Ben Fitzpatrick
>I'm sorry to say that I don't really understand the concept of making the >Python portion only an interface to the >underlying C++ code. Please could you >explain what that means? David, Sorry, I must not have communicated this well. I'll try again. It depends on how your code works, but th

Re: [C++-sig] Advice sought on making a large C++ application a Python extension

2010-09-07 Thread Ben Fitzpatrick
David, I'm still a newbie on this list myself, but I will tell you that for the larger project which we were attempting to wrap, we had excellent luck with Gustavo Carniero's Pybindgen project. We found it to be much simpler to work with than boost.python and py++, and also it compiled much fas

Re: [C++-sig] Boost-python/pybindgen and wrapping member variables

2010-01-21 Thread Ben Fitzpatrick
PM To: Development of Python/C++ integration Subject: Re: [C++-sig] Boost-python/pybindgen and wrapping member variables On Wed, Jan 20, 2010 at 7:26 PM, Ben Fitzpatrick mailto:bfitzpatr...@vtiinstruments.com>> wrote: Gustavo, I think you win some sort of prize for not only fastest mailin

Re: [C++-sig] Boost-python/pybindgen and wrapping member variables

2010-01-20 Thread Ben Fitzpatrick
-bounces+bfitzpatrick=vtiinstruments@python.org] On Behalf Of Gustavo Carneiro Sent: Wednesday, January 20, 2010 1:18 PM To: Development of Python/C++ integration Subject: Re: [C++-sig] Boost-python/pybindgen and wrapping member variables On Wed, Jan 20, 2010 at 5:43 PM, Ben Fitzpatrick

[C++-sig] Boost-python/pybindgen and wrapping member variables

2010-01-20 Thread Ben Fitzpatrick
leads me to believe there's something I'm missing. I went and looked up the documentation for reference_existing_object, but of course none of their examples show how you could use it on a member variable. What am I missing? Thanks, Ben Fitzpatrick ___

[C++-sig] Pybindgen and enum types

2010-01-18 Thread Ben Fitzpatrick
Hi everyone, I am trying to wrap a section of C++ code with many enum types in it, of the form: enum Blah { BlahSomething1 = 1000; BlahSomething2 = 1001; } Thanks to this definition - pulled into pybindgen via automagical pygccxml parsing of some header files - code of the form Blah here_i

Re: [C++-sig] Pybindgen/pygccxml integration

2009-08-19 Thread Ben Fitzpatrick
, and the Create function even works… but the get_value function doesn’t appear when I dir the class. Set_value appears and seems to work, so why not get? Any ideas? I’m on a clean Debian Etch install (virtual machine), using GCC 4.3.2, Python 2.5.2, gccxml 0.9. Thanks, Ben Fitzpatrick From

Re: [C++-sig] Pybindgen/pygccxml integration

2009-06-23 Thread Ben Fitzpatrick
Gustavo Carneiro wrote: 2009/6/23 Ben Fitzpatrick <mailto:bfitzpatr...@vtiinstruments.com>> Thanks for the suggestions! I tried the first one, just as a test. I'd like to do the second programatically if I can, but I just wanted to make sure annotations wer

Re: [C++-sig] Pybindgen/pygccxml integration

2009-06-23 Thread Ben Fitzpatrick
be similar to the declaration you pointed me to in foo.h: // -#- @zbr(transfer_ownership=true) -#- void store_zbr (Zbr *zbr); Also tried renaming it to 'foobaz' in case 'value' was a keyword. Is there something I'm missing? Thanks, Ben Fitzpatrick Gustavo C

[C++-sig] Pybindgen/pygccxml integration

2009-06-23 Thread Ben Fitzpatrick
7;t find anything referencing this, and none of the examples use gccxml. Any ideas? Thanks, Ben Fitzpatrick ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig