On 23 Dec 2008, at 11:28, William Newbery wrote:
Cannot be done. Python can only call C code that meets its API specification. C++ loses on two counts its not C and its not python API.
So yes you have to wrap ever object that you expose. That is exactly what I did to implement pysvn that uses PyCXX.
Python would have no idea what to do with the returned object. For example how would python know what methods are supported?
For COM have you looked at using WIN32COM of pywin32 provides?
I have used pywin32 to access COM objects.
Also you be able to use swig to automate generating wrappers.