[Stefan Schukat]
| You can only build a proxy module if you have the typelibrary
| information which not all programs provide, since it prohibits
| changes in the interface the easy way. E.g., MFC application
| will normally not provide a typelibrary but support dynamic
| dispatch.
Oh. Thanks.
Many thanks to all of you; I learned a lot and will come up next time
hopefully with some less utopic project ...
:-)
Wolfgang
--
http://mail.python.org/mailman/listinfo/python-list
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Tim Golden
> Sent: Friday, April 28, 2006 11:45 AM
> To: python-list@python.org
> Subject: RE: Get all attributes of a com object
>
> [snip]
>
> The only thing
[bruno at modulix]
| Duncan Booth wrote:
| > 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 :(
In fact, i
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 wrapp
classes. The
properties
you get with OBJ._prop_map_get_.keys().
Stefan
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of bruno at modulix
> Sent: Friday, April 28, 2006 10:29 AM
> To: python-list@python.org
> Subject: Re:
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 s
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 '[EMAIL PROTECTED]'.split('@')])
Thanks for your tips.
But dir() and inspect did not really help.
dir():
['GetIDsOfNames', 'GetTypeInfo', 'GetTypeInfoCount', 'Invoke',
'InvokeTypes', 'QueryInterface', '_ApplyTypes_', '_FlagAsMethod',
'_LazyAddAttr_', '_NewEnum', '_Release_', '__AttrToID__',
'__LazyMap__', '__call__', '__cmp__', '
eicwo01 wrote:
> Without to know the names, is it possible to dump all attributes of a
> com object?
> from win32com.adsi import *
from module import * is Bad(tm)
> objDom = ADsOpenObject("LDAP:/ ...
> print ???"all attributes"??? of objDom
Look at dir() and the inspect module.
--
bruno dest
10 matches
Mail list logo