Re: [C++-sig] With boost python tuple, how to loop over tuple items?

2020-01-30 Thread Jones, Torrin A (US)
If I remember correctly there is a len() function on the boost::python::object class. len() is documented at the bottom of this page . . . https://www.boost.org/doc/libs/1_66_0/libs/python/doc/html/reference/object_wrappers/boost_python_object_hpp.html I can’t help with the ambiguity. From: C

Re: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP!

2019-05-22 Thread Jones, Torrin A (US)
You may need to set PYTHONPATH. Search for PYTHONPATH on this page for a description. https://docs.python.org/3/using/cmdline.html From: Cplusplus-sig [mailto:cplusplus-sig-bounces+torrin.jones=baesystems@python.org] On Behalf Of Andrew Voelkel Sent: Wednesday, May 22, 2019 10:56 AM To:

Re: [C++-sig] Python support in boost::python (what version)

2019-05-22 Thread Jones, Torrin A (US)
] Python support in boost::python (what version) *** WARNING *** EXTERNAL EMAIL -- This message originates from outside our organization. On 2019-05-20 11:20 a.m., Jones, Torrin A (US) wrote: For clarity, my boss is asking, "what version of python does boost python support?" I was

Re: [C++-sig] Python support in boost::python (what version)

2019-05-20 Thread Jones, Torrin A (US)
message originates from outside our organization. On 2019-05-16 3:43 p.m., Jones, Torrin A (US) wrote: What version of python does boost::python officially support? Anything above version 2.2 I noticed in the python build file (see link below), it will only find from version 1.5 to 3.4. Does this mean tha

[C++-sig] Python support in boost::python (what version)

2019-05-16 Thread Jones, Torrin A (US)
What version of python does boost::python officially support? I noticed in the python build file (see link below), it will only find from version 1.5 to 3.4. Does this mean that boost python really only supports up to 3.4? Folks do appear to be using other versions, but the fact that this onl

Re: [C++-sig] Calling python function repr from C++ using boost.python (possible?)

2019-03-10 Thread Jones, Torrin A (US)
This worked very well thanks. -Original Message- From: Stefan Ring [mailto:stefan...@gmail.com] Sent: Tuesday, March 05, 2019 12:04 PM To: Development of Python/C++ integration Cc: Jones, Torrin A (US) Subject: Re: [C++-sig] Calling python function repr from C++ using boost.python

[C++-sig] Calling python function repr from C++ using boost.python (possible?)

2019-03-02 Thread Jones, Torrin A (US)
Is it possible to call repr from C++ on a C++ object that can be converted to python? Let me explain. I have an enum that I converted to python using boost::python::enum_(). That class already provides a good repr() to python (thanks to the boost::python developers for that). However that en