[python-win32] IADsContainer.GetObject returns objects of different type than IADsContainer.Create
Tim Roberts
timr at probo.com
Mon Aug 3 22:24:52 CEST 2009
Arve Knudsen wrote:
>
> I am thoroughly confused by win32com.adsi at this point. Right now I
> am finding that IADsContainer.GetObject returns objects of a different
> type than IADsContainer.Create, that expose only a subset of the
> expected methods!
How do you know? Are you using dir() to look at the list of methods?
That's not reliable with COM objects, unless you have used makepy on
them. The win32com stuff doesn't go query the complete list of methods
and properties. When you ask for one, it checks for it, and will
remember that for later.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list