support for boost::python for build double object

Skip Montanaro skip.montanaro at gmail.com
Mon Nov 3 09:10:21 EST 2014


On Mon, Nov 3, 2014 at 7:53 AM, Joseph Shen <joseph.smeng 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141103/146209ca/attachment.html>


More information about the Python-list mailing list