pythoncom: implementing dispinterfaces

Bruce Dodson bruce_dodson at bigfoot.com
Sun Aug 15 18:24:41 EDT 1999


I have a dispinterface defined in a typelib.  I have generated a python
class for it using makepy.  Now I want to implement that same dispinterface
via a Python class.  To do this, is it enough to simply inherit from the
generated class, or should I be making local copies of _dispid_to_func_ etc.
in my own class? (or in each instance?)  The reason I ask is that I was
reading the docstring for the default policy, and I noticed that it may
change those COM attributes in-place as the object is used.

Thanks,
Bruce





More information about the Python-list mailing list