support for boost::python for build double object

Joseph Shen joseph.smeng at gmail.com
Mon Nov 3 08:53:24 EST 2014


In the boost::python library there is a function

>>> boost::python::long_

and this function return a boost::python::object variable

I'm trying to wrap a double variale but I can't find 
something just like

>>  boost::python::double_

can someone help me to build a double object 

PS.
I know there are some functions in pure python c api like 

>> PyFloat_FromDouble

and after create the object I can wrap it in boost::python::object

but all I want is same api from boost::python library

I can't find what I want

tanks.



More information about the Python-list mailing list