[C++-sig] Expanding embedded code
Stefan Seefeld
seefeld at sympatico.ca
Thu Apr 23 22:22:26 CEST 2009
Robin Gilks wrote:
> I'm still having a problem with the python side of things - the c++
> side mostly makes sense. For example, the "class instances" section of
> the page at
>
> http://wiki.cacr.caltech.edu/danse/index.php/Lots_more_details_on_writing_wrappers
>
> I can follow with no problems but I've no idea how to invoke it from
> python with either the "wrap_new_Numbers" call or the subsequent
> "wrap_Numbers_MemberMult" call. I just don't get what the python code
> should look like to get the void pointer to the class instance at all!
> Any chance of a Python 3 liner that shows how its done?
>
I'm not sure what you are asking. Sticking to my example code, when you
run the python script, 'instance' will be available in the global
namespace, so you can make calls into it from Python. If that is not
what you want, can you come up with another example ?
Thanks,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
More information about the Cplusplus-sig
mailing list