[C++-sig] Python converters for raw pointers: request for help

Michele De Stefano micdestefano at gmail.com
Tue Oct 27 09:10:52 CET 2009


That's not what I'd like to do. I'd like to make a "from-Python"
converter. I don't want to make a wrapper that takes a
boost::python::object and then call extract ...

The problem in my converter (see the previous e-mails) is that Python
does not even enter into the "convertible" method ...


2009/10/26 Randolph Fritz <rfritz333 at gmail.com>:
> I think what you want is here:
>  <http://www.boost.org/doc/libs/1_39_0/libs/python/doc/tutorial/doc/html/python/object.html#python.extracting_c___objects>
>
> and here:
>  <http://www.boost.org/doc/libs/1_40_0/libs/python/doc/v2/extract.html>
>
> Take a look at that--see if it helps.
>
> --
> Randolph Fritz
>  design machine group, architecture department, university of washington
> rfritz at u.washington.edu -or- rfritz333 at gmail.com
>
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>



-- 
Michele De Stefano
http://www.linkedin.com/in/micdestefano
http://xoomer.virgilio.it/michele_de_stefano


More information about the Cplusplus-sig mailing list