[python-win32] Problem with Rhapsody automation: It is Impossible?
Jerry Hill
malaclypse2 at gmail.com
Thu Aug 2 20:17:15 CEST 2007
On 8/2/07, sccs cscs <zorg724 at yahoo.fr> wrote:
> # HERE IS THE ERROR: The theIRPModelElement is a "IRPType" which is
> # a specialization of a IRPModelElement, but Python continue to see
> it like an IRPModelElement
Take a look at the win32com.client.CastTo() function. You probably
want something like:
theIRPModelElement = win32com.client.CastTo(theIRPModelElement, 'IRPType')
I'm not sure how you would do it if you don't know ahead of time what
subclass you're going to get back.
--
Jerry
More information about the python-win32
mailing list