[C++-sig] create a python object from scratch in boost.python?

Stefan Seefeld stefan at seefeld.name
Tue Jan 21 23:34:00 CET 2014


On 01/21/2014 05:24 PM, Gary Oberbrunner wrote:
>
> ----- Original Message -----
>> From: "Stefan Seefeld" <stefan at seefeld.name>
>> 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 idea boost python could do this.  Thanks, Stefan!
>
> (It's like "python-ception": python calls C++ which calls python...)

Yeah, the boundary between the two languages really becomes blurry,
precisely because the two really share the same runtime, so passing
objects across the boundary becomes so seamless you can almost forget
it's there. The beauty of hybrid programming... :-)

    Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...



More information about the Cplusplus-sig mailing list