_oleobj_ and dir

yelled at yahoo.com yelled at yahoo.com
Tue Dec 12 16:09:13 EST 2000


Thanks much Alex. Exactely what I was looking for!

Hoon,
In article <910v3j01os2 at news2.newsguy.com>,
  "Alex Martelli" <aleaxit at yahoo.com> wrote:
> <yelled at yahoo.com> wrote in message
news:910lpp$p2g$1 at nnrp1.deja.com...
> > Hi,
> >
> >  I am trying to get available functions and attributes of COM obj:
>
> Two steps: first, you must ensure that the Python wrappers for
> the typelibrary you're using are on -- the simplest way may be
> to use:
> adoConn = win32com.client.gencache.EnsureDispatch('ADODb.connection')
> rather than:
> adoConn = win32com.client.Dispatch('ADODb.connection')
>
> Once that is done, dir(adoConn.__class__) will give you, among
> other things, the COM methods of the class:
>
> >>> print dir(adoConn.__class__)

snip..
> Alex
>
>


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list