Re: [pygccxml-development] Recent Py++ modifications...
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <ba...@ir...> - 2006-09-18 13:12:41
|
Roman Yakovenko wrote: >> One of the tests contains those two lines: >> >> fv = MFloatVector(0.6, 0.7, 0.8) >> p = MPoint(fv) >> >> When this code is executed, the second line produces the following error: >> >> TypeError: No registered converter was able to extract a C++ reference >> to type class MVector from this Python object of type MFloatVector >> [...] > > It is not you. I did small code clean up. Basically I moved some code from > creator_t to relevant decl_wrapper classes. May be I broke somthing. Can > you > create small test case? Do you use latest version from Subversion? I've checked out Py++ from last week and gradually did updates to check which one was responsible for the failure. The problematic modification was done in revision 539: http://svn.sourceforge.net/viewvc/pygccxml?view=rev&revision=539 With this modification Py++ generates much more implicitly_convertible<>() statements in the main function. For example, I now have the following line which I think is responsible for the failure: bp::implicitly_convertible< MFloatVector const &, MVector >(); I can't say for sure what is going on inside of Boost.Python and why it fails, but at least I know that everything has worked before this modification. What kind of problems was this modification supposed to fix? And how do I get back to the previous behavior? - Matthias - |