[C++-sig] Boost.Python bug found
Roman Yakovenko
romany at actimize.com
Thu Sep 11 06:04:45 CEST 2003
Hi. I think I find bug.
Description. I wrote converter for std::wstring from\to
PyUnicodeObject.
( Thanks to Ralf W. Grosse-Kunstleve and his article
Converting CString to/from std::string )
After registration it works pretty well ( for me ). But if I
want to expose
std::vector< std::wstring > using vector_indexing_suite I get
error message:
TypeError: No Python class registered for C++ class class
_STL::basic_string<unsigned short,class
_STL::char_traits<unsigned short>,class
_STL::allocator<unsigned short> >
Also the same bug happens with def_readwrite function.
But I don't have small reproducable case.
I append 2 files to this message.
cpp - contains registration of converter, test function for it,
class that contains vector of wstring.
py - contains very little test for converter, and also
reproduce
the error.
Also if David Abrahams thinks that my converter is good enough to be
in the library - I may polish it and write a lot of test
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iter_wrapper.cpp
Type: application/octet-stream
Size: 2901 bytes
Desc: iter_wrapper.cpp
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030911/a1908e55/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_iter_wrapper.py
Type: application/octet-stream
Size: 222 bytes
Desc: test_iter_wrapper.py
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030911/a1908e55/attachment-0001.obj>
More information about the Cplusplus-sig
mailing list