Home Help Center

Ice, Upcasting, Inheritance, and Python

jsternbergjsternberg Member Jonathan SternbergOrganization: University of MarylandProject: GUI Testing Automation fRamework (GUITAR)
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.
Sign In or Register to comment.