Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80154 > unrolled thread
| Started by | Joseph Shen <joseph.smeng@gmail.com> |
|---|---|
| First post | 2014-11-03 05:53 -0800 |
| Last post | 2014-11-03 15:02 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | Joseph Shen <joseph.smeng@gmail.com> |
|---|---|
| Date | 2014-11-03 05:53 -0800 |
| Subject | support for boost::python for build double object |
| Message-ID | <b822b2c8-c953-4541-afae-cb5ca3ea96c9@googlegroups.com> |
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.
[toc] | [next] | [standalone]
| From | Skip Montanaro <skip.montanaro@gmail.com> |
|---|---|
| Date | 2014-11-03 08:10 -0600 |
| Message-ID | <mailman.15429.1415023830.18130.python-list@python.org> |
| In reply to | #80154 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Nov 3, 2014 at 7:53 AM, Joseph Shen <joseph.smeng@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
[toc] | [prev] | [next] | [standalone]
| From | Joseph Shen <joseph.smeng@gmail.com> |
|---|---|
| Date | 2014-11-03 06:39 -0800 |
| Message-ID | <b35a6614-e097-4770-a843-39499bb1f520@googlegroups.com> |
| In reply to | #80155 |
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...@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
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-11-03 15:02 +0000 |
| Message-ID | <mailman.15432.1415026974.18130.python-list@python.org> |
| In reply to | #80154 |
On 03/11/2014 13:53, 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 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. > I'm sorry that I can't help directly but try here https://mail.python.org/mailman/listinfo/cplusplus-sig which is also available as gmane.comp.python.c++ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web