Get all attributes of a com object

Stefan Schukat SSchukat at dspace.de
Fri Apr 28 06:59:30 EDT 2006


Hello, 

you only get information about a COM object when you have a wrapper.
But you are using the dynamic invoke  (Dispatch). So try the typelibrary
browser 
in Pythonwin or use the generated wrapper with makepy or
gencache.EnsureDispatch.
But dir will give you only the methods and internal classes. The
properties
you get with OBJ._prop_map_get_.keys().

	Stefan 

> -----Original Message-----
> From: python-list-bounces+sschukat=dspace.de at python.org 
> [mailto:python-list-bounces+sschukat=dspace.de at python.org] On 
> Behalf Of bruno at modulix
> Sent: Friday, April 28, 2006 10:29 AM
> To: python-list at python.org
> Subject: Re: Get all attributes of a com object
> 
> eicwo01 wrote:
> > Thanks for your tips.
> > But dir() and inspect did not really help.
> 
> Really ?
> 
> def dump(obj):
>   for name in dir(obj):
>      print getattr(obj, name)
> 
> --
> bruno desthuilliers
> python -c "print '@'.join(['.'.join([w[::-1] for w in 
> p.split('.')]) for p in 'onurb at xiludom.gro'.split('@')])"
> --
> http://mail.python.org/mailman/listinfo/python-list
> 



More information about the Python-list mailing list