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

2020-01-30 Thread HOUSSEN Franck
This helps ! Got it to work ! Thanks guys. Code attached for people who could need it. Franck Le jeu. 30 janv. 2020 à 15:46, stefan a écrit : > > On 2020-01-29 4:01 p.m., HOUSSEN Franck wrote: > > With boost python tuple, how to loop over tuple items? In dummy.cpp > attached, I'd like to get li

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

2020-01-30 Thread stefan
On 2020-01-29 4:01 p.m., HOUSSEN Franck wrote: With boost python tuple, how to loop over tuple items? In dummy.cpp attached, I'd like to get line 8 to work. Afterwards, I noticed line 7 does not even compile. How to get the length of a tuple (line 8), and, why there could be some ambig

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

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

2020-01-30 Thread HOUSSEN Franck
With boost python tuple, how to loop over tuple items? In dummy.cpp attached, I'd like to get line 8 to work. Afterwards, I noticed line 7 does not even compile. How to get the length of a tuple (line 8), and, why there could be some ambiguity (line 7). Any help / clue is appreciated. Franck Make