Currently, there is no way to create an object of one of the C++ Py::Object subclasses from a Python object that is of a derived subclass of the target.
In example, using pysvn that is compiled with PyCXX:
import pysvn
class S(str):
pass
a=pysvn.Client('path1')
b=pysvn.Client(S('path2'))
TypeError: PyCXX: Error creating object of type N2Py6StringE from 'path2'
This problem is similar to the previously fixed bug https://sourceforge.net/p/cxx/bugs/40/
The attached patch replaces class checks in Src/IndirectPythonInterface.cxx by instance checks, effectively acting on validate() calls.
Thanks for considering it.
This issue can be closed as the problem has been fixed by https://sourceforge.net/p/cxx/code/421/