win32com.client genpy support
Syver Enstad
syver-en+usenet at online.no
Fri Dec 13 17:23:31 EST 2002
Sometimes when I do variable.__class__ on COM object I find that it's
class is the coclass wrapper.
Example:
word = win32com.client.Dispatch('Word.Application')
# word is of class _Application which it should be
document = word.Documents.Add()
# document is of class Document which is derived from CoClassBaseClass
# but it responds to the right methods anyway.
What is going on? Is this right?
--
Vennlig hilsen
Syver Enstad
More information about the Python-list
mailing list