support for boost::python for build double object

Joseph Shen joseph.smeng at gmail.com
Mon Nov 3 09:39:25 EST 2014


On Monday, November 3, 2014 10:11:01 PM UTC+8, Skip Montanaro wrote:
> On Mon, Nov 3, 2014 at 7:53 AM, Joseph Shen <joseph... at gmail.com> wrote:
> 
> 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 variable but I can't find
> 
> something just like
> 
> 
> 
> >>  boost::python::double_
> 
> 
> 
> can someone help me to build a double object
> Is there a boost::python::float_ function? If so, does it produce a 32-bit (C float) or 64-bit (C double) number?
> 
> 
> Skip

thanks for reply,

no there is no such function like float_ or double_ or float32_ etc.

I'm reading the boost source code right now to find something

wish me good luck



More information about the Python-list mailing list