[python-win32] Implementing Collections / Shim-ing Word
Tim Roberts
timr at probo.com
Wed Jul 2 23:31:39 CEST 2008
jeff sacksteder wrote:
>> Well, COM objects don't have members (externally). Everything is a
>> function.
>>
>
> If everything is a function, what's _public_attrs_ for?
>
I suppose it's really a matter of semantics more than a useful
distinction. _public_attrs_ creates what COM calls a "property", which
are actually implemented as as two special functions called get_Xxx and
put_Xxx (for a property called Xxx). Languages that have the notion of
a property usually hide this from you, calling the functions behind your
back.
A COM interface is a pure virtual C++ class, which means it can consist
of nothing but function pointers.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list