If it's any help, I wrote a small bit on the details of writing
converters. It might help clarify some of the mechanics which, I
agree, are a bit mysterious:
http://misspent.wordpress.com/2009/09/27/how-to-write-boost-python-converters/
Austin
On Wed, Sep 30, 2009 at 11:40 PM, James Amundson
On Wed, Sep 30, 2009 at 6:18 PM, Christopher Bruns wrote:
> Single-argument C++ constructors in pyplusplus seem to generate a
> boost::python::implicitly_convertible tag, even when the constructor
> is declared "explicit" in C++. That doesn't sound right to me.
I don't completely agree with you.
lvalue_from_pytype only works for passing by value or const
references/pointers, but that seems to match your case,
since you MPI_Comm is passed by value to your sayhello().
However, wrapping extern "C" isn't portable, AFAIK. You'll need a thin C++
wrapper for each of the C functions.
Did you c
Single-argument C++ constructors in pyplusplus seem to generate a
boost::python::implicitly_convertible tag, even when the constructor
is declared "explicit" in C++. That doesn't sound right to me.
Shouldn't a pair of types that are not implicitly convertible in C++,
also not be implicitly convert
Hi,
I'm trying to write to/from type converters for my code, and I'm stuck.
My case doesn't map well to any of those in the boost python
documentation. I'm trying to pass objects of type MPI_Comm (really a C
type!) back and forth with mpi4py (which uses cython internally.) The
mpi4py author h
Oh, well. Thanks.
Randolph
On 2009-09-30, Roman Yakovenko wrote:
> On Wed, Sep 30, 2009 at 9:49 PM, Randolph Fritz wrote:
>> On 2009-09-30, Roman Yakovenko wrote:
>>> 2009/9/30 Randolph Fritz :
As the title says.
>>>
>>> Do you have a problem?
>>>
>>> In the past, few people reported tha
On Wed, Sep 30, 2009 at 9:49 PM, Randolph Fritz wrote:
> On 2009-09-30, Roman Yakovenko wrote:
>> 2009/9/30 Randolph Fritz :
>>> As the title says.
>>
>> Do you have a problem?
>>
>> In the past, few people reported that they successfully used Py++ and
>> pygccxml on this platform.
>>
>
> Do you
On 2009-09-30, Roman Yakovenko wrote:
> 2009/9/30 Randolph Fritz :
>> As the title says.
>
> Do you have a problem?
>
> In the past, few people reported that they successfully used Py++ and
> pygccxml on this platform.
>
Do you have any specifics? I was hoping to learn from other people's
experi