On Thu, 09 May 2013 07:55:07 +0100, Wichert Akkerman <wich...@wiggy.net> wrote:
Fair enough. I see your conversion function doesn't use bp::object, but a raw PyObject instead. Using a bp::object might do the registration for you.. Probably not. Alternatively, you could try adding this to your registration code:- converter::registration& uuid_converter = const_cast<converter::registration&>( converter::registry::lookup(type_id<boost::uuids::uuid>()) ); uuid_converter.m_class_object = # if PY_VERSION_HEX >= 0x03000000 &PyUnicode_Type; #else &PyString_Type; #endif That will get you past the current error, at least, but there's probably an easier solution... HTH, Alex |
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig