Archived

This forum has been archived. Please start a new discussion on GitHub.

Ice, Upcasting, Inheritance, and Python

I want to add an embedded interpreter to my application using the PyCrust shell that comes with wxPython. Now say I have a servant that has collected all of the relevant objects that I want my applications interpreter to have access to. Is there anyway for me to get the objects true identity and do a checked cast to upcast it to the correct type so that it can be used properly in the interpreter without having to explicitly tell it what each type is?

If it makes any difference, the servants are being created in C++ and I want to access them from Python.