Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '64-bit': 0.07; 'subject:support': 0.07; '32-bit': 0.09; 'subject:build': 0.09; 'cc:addr:python-list': 0.11; 'function?': 0.16; 'number?': 0.16; 'subject:object': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'library': 0.18; 'variable': 0.18; 'trying': 0.19; '>>>': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; '>>>': 0.24; 'skip': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; "can't": 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'so,': 0.37; 'nov': 0.38; 'does': 0.39; 'to:addr:gmail.com': 0.65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=B1+fIdmTEQHlcjsmQFhJoys/ox0FzsAX0SYkbvChx9I=; b=C1oZxUhh2YtyWmHdmQ36ZZF7A4vIZc3ml1pGrWjolFW0YQeEvaKSbR8SjPR4Rv+m2N HvTSVx9xyUviCuxROkzeoe7DolnaSWldA4I0R/QLLEt04FRJ9FkXQPnNU+Atag+Iu+94 CLx7Z5UP29yCMGkZmr7dcq3sdikcwvqnnTTihyAR+Tuxfbu8VTeebDww2hEM62rcYmyI hw6FoTY2U1ZCGVLFPVLY3HeykOxijh593KmRDOG6JMMab7b3LgsY54G8w48Zh5BYpCJm xg8ufobsgaHt2Ca43TZZ1bkuTr8psYLYGo0mVV7LVbFHbrxTqVf1zoyZYjd3GBTaGjfT UE9g== MIME-Version: 1.0 X-Received: by 10.51.17.69 with SMTP id gc5mr16408224igd.24.1415023821193; Mon, 03 Nov 2014 06:10:21 -0800 (PST) In-Reply-To: References: Date: Mon, 3 Nov 2014 08:10:21 -0600 Subject: Re: support for boost::python for build double object From: Skip Montanaro To: Joseph Shen Content-Type: multipart/alternative; boundary=001a1136000c360a3b0506f4e88e Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 52 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415023830 news.xs4all.nl 2830 [2001:888:2000:d::a6]:49698 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80155 --001a1136000c360a3b0506f4e88e Content-Type: text/plain; charset=UTF-8 On Mon, Nov 3, 2014 at 7:53 AM, Joseph Shen 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 --001a1136000c360a3b0506f4e88e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Mon, Nov 3, 2014 at 7:53 AM, Joseph Shen <joseph.smeng@gmail.com= > wrote:
In the boost::python library there i= s 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

>>=C2=A0 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

--001a1136000c360a3b0506f4e88e--