[C++-sig] What if a Python override returns several values?
David Abrahams
dave at boost-consulting.com
Mon Sep 18 22:49:34 CEST 2006
Alex Mohr <amohr at pixar.com> writes:
>>> what about:
>>>
>>> boost::python::tuple tup
>>> = this->get_override("g")().as<boost::python::tuple>();
>>
>> Yes (what's this anyway? I didn't see that in the reference manual).
>
> It's not documented. It appears to be a convenience. It's a method
> that appears to be equivalent to override::method_result::operator T().
It's an inconvenience that might be useful as a workaround.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list