[C++-sig] Outstanding Jobs for v2 release
Achim Domma
achim.domma at syynx.de
Wed Jul 17 14:36:25 CEST 2002
> Please try doctests; it's really quite easy if you use the build system.
Where it makes sense, I changed the return values from long to bool. Then I
wrote some tests using doctest, but have some problems:
- the test for 'str' fails. the output of 'Expected' and 'Got' seem equal to
me, but doctest says they are not. I searched for differences in tabs and
spaces but did not find anything.
- slice and operator[] do not work. slice does not work at all and
operator[] could only be used for writing. here is an example for 'dict':
dict tmp;
tmp[1] = "a test string";
print(tmp.get(1));
print(tmp[1]);
The last line fails with the following error:
TypeError: No to_python (by-value) converter found for C++ type: class
boost::python::api::proxy<struct boost::python::api::item_policies>
Is this my fault? what's going wrong here?
Achim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: str-dict-tuple.zip
Type: application/x-zip-compressed
Size: 9559 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20020717/1e819862/attachment.bin>
More information about the Cplusplus-sig
mailing list