[python-win32] Indexing COM Objects

Erignac, Charles A charles.a.erignac@boeing.com
Wed, 26 Mar 2003 13:24:28 -0800

I manipulate COM objects through their Python wrapper (static dispatch). =
Supposing that myObject is such an object, would id(myObject._oleobj_) =
return a unique key to the underlying COM object?
In other words, if I cast myObject into another wrapper class as in
	myOtherObject =3D Cast(myObject,myOtherClass)
would  myOtherObject._oleobj_ be the same object as myObject._oleobj_?


-----Original Message-----
From: Bob Gailer [mailto:bgailer@alum.rpi.edu]
Sent: Wednesday, March 26, 2003 12:36 PM
To: Erignac, Charles A; python-win32@python.org
Subject: Re: [python-win32] Indexing COM Objects

At 12:03 PM 3/26/2003 -0800, Erignac, Charles A wrote:
>I would like to use COM objects as keys for a dictionary. It seems that =

>they do not have the indexing property. Is one of their property a =
>indexable key?

AFAIK that's a nono. What are you trying to accomplish? Perhaps there's =

Bob Gailer
PLEASE NOTE NEW EMAIL ADDRESS bgailer@alum.rpi.edu
303 442 2625