On 01/21/2014 05:24 PM, Gary Oberbrunner wrote:
>
> - Original Message -
>> From: "Stefan Seefeld"
>> Have a look at the attached code; I don't think that counts as
>> heavy-weight. In particular, trying to do the same without embedding
>> a
>> little "script" would be just more cumbersom
- Original Message -
> From: "Stefan Seefeld"
> Have a look at the attached code; I don't think that counts as
> heavy-weight. In particular, trying to do the same without embedding
> a
> little "script" would be just more cumbersome, if it worked at all.
Whoa, that is cool! I had no
On 01/21/2014 01:52 PM, Gary Oberbrunner wrote:
>
> - Original Message -
>> From: "Stefan Seefeld"
> ...
>> It seems what you really want is a way for your C++ code to
>> manipulate pure Python objects, without any automatic type conversion.
> Yes!
>
>> So the cleanest way to do that would
- Original Message -
> From: "Stefan Seefeld"
...
> It seems what you really want is a way for your C++ code to
> manipulate pure Python objects, without any automatic type conversion.
Yes!
> So the cleanest way to do that would be to use the above definition of
> the "Effect" class (i
On 01/21/2014 11:03 AM, Gary Oberbrunner wrote:
>
> - Original Message -
>> From: "Stefan Seefeld"
>> To: "Development of Python/C++ integration"
>> Sent: Tuesday, January 21, 2014 10:45:52 AM
>> Subject: Re: [C++-sig] create a python object from scratch in boost.python?
>>
>> On 01/21/20
- Original Message -
> From: "Stefan Seefeld"
> To: "Development of Python/C++ integration"
> Sent: Tuesday, January 21, 2014 10:45:52 AM
> Subject: Re: [C++-sig] create a python object from scratch in boost.python?
>
> On 01/21/2014 10:37 AM, Gary Oberbrunner wrote:
> > So now it retu
On 01/21/2014 10:37 AM, Gary Oberbrunner wrote:
> So now it returns a python list of python dicts. All I want now is to
> override __getattr__ on each ppinfo dict so it returns the dict value
> as the attribute value, so in python I can reference
> effect_list[i].name instead of effect_list[i]['nam
...
>
> > > I think if you've exposed your c++ class, then there is a conversion
> > > from c++ object to python object. So
> > > bp::object plugin (Plugin_Info());
>
> > Thanks -- I can indeed do that (or a proxy C++ class in any case).
> > I
> > was wondering though if it's possible to create
My be construct bp::object from the result of _PyObject_New?
On Tue, Jan 21, 2014 at 8:29 AM, Gary Oberbrunner wrote:
>
>
> - Original Message -
> > From: "Neal Becker"
> > To: cplusplus-sig@python.org
> > Sent: Monday, January 20, 2014 8:39:55 PM
> > Subject: Re: [C++-sig] create a py
- Original Message -
> From: "Neal Becker"
> To: cplusplus-sig@python.org
> Sent: Monday, January 20, 2014 8:39:55 PM
> Subject: Re: [C++-sig] create a python object from scratch in boost.python?
>
> Gary Oberbrunner wrote:
>
> > I'd like to create a python object with some attributes
10 matches
Mail list logo