Get all attributes of a com object

bruno at modulix onurb at xiludom.gro
Fri Apr 28 06:32:26 EDT 2006


Duncan Booth wrote:
> bruno at modulix wrote:
> 
> 
>>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)
>>
> 
> 
> That will show him the attributes of the Python wrapper around the COM 
> object, it won't show him the attributes of the underlying COM object 
> itself.

I stand corrected - and shouldn't answer questions about MS technos :(

(snip)

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list