[C++-sig] Re: Slice tests failing on MSVC 7.1, 8.0

David Abrahams dave at boost-consulting.com
Thu Aug 26 16:12:01 CEST 2004


Jonathan Brandmeyer <jbrandmeyer at earthlink.net> writes:

> According to the automated regression testers here:
> http://www.meta-comm.com/engineering/boost-regression/developer/python_.html
>
> The slice test is failing on MSVC 7.1 and 8.0.  First off, do you expect
> them to pass on these compilers?

They're your tests, aren't they??  Don't you expect them to pass?

> If so, the problem is that C++ functions that take a
> boost::python::slice argument raise a Boost.Python.AgumentError when
> called with a Python-created slice.
>
> The errors in the log take the form:
> ArgumentError: Python argument types in
>     slice_ext.check_slice_get_indicies(slice)
> did not match C++ signature:
>     check_slice_get_indicies(class boost::python::slice)
>
> Any ideas?

Did you register a converter that allows Python-created slices to be
passed where boost::python::slice is required?

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com




More information about the Cplusplus-sig mailing list