Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80154

support for boost::python for build double object

X-Received by 10.236.63.41 with SMTP id z29mr26131175yhc.15.1415022805561; Mon, 03 Nov 2014 05:53:25 -0800 (PST)
X-Received by 10.50.222.44 with SMTP id qj12mr144528igc.9.1415022805407; Mon, 03 Nov 2014 05:53:25 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!u7no2099066qaz.1!news-out.google.com!ks2ni7567igb.0!nntp.google.com!r10no3294015igi.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Mon, 3 Nov 2014 05:53:24 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=23.239.7.197; posting-account=wnbizgoAAAAAiNarW6uK9-8A75RS5-DL
NNTP-Posting-Host 23.239.7.197
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <b822b2c8-c953-4541-afae-cb5ca3ea96c9@googlegroups.com> (permalink)
Subject support for boost::python for build double object
From Joseph Shen <joseph.smeng@gmail.com>
Injection-Date Mon, 03 Nov 2014 13:53:25 +0000
Content-Type text/plain; charset=ISO-8859-1
Lines 24
Xref csiph.com comp.lang.python:80154

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

support for boost::python for build double object Joseph Shen <joseph.smeng@gmail.com> - 2014-11-03 05:53 -0800
  Re: support for boost::python for build double object Skip Montanaro <skip.montanaro@gmail.com> - 2014-11-03 08:10 -0600
    Re: support for boost::python for build double object Joseph Shen <joseph.smeng@gmail.com> - 2014-11-03 06:39 -0800
  Re: support for boost::python for build double object Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-03 15:02 +0000

csiph-web