[python-win32] pythoncom warning: PyVARDESC

Michel Claveau mc at mclaveau.com
Mon Jun 16 17:59:44 CEST 2008


Hi!

Sorry for late...
An example:
Create the file C:\tst3.htm, with this content:
    <HTML><BODY>
    <script language="javascript">
        var ooo = new Object();
        ooo.txt='Mark Hammond is a genious';
    </script>
    AAAAAAA<br>
    BBBBBBB<br>
    </BODY></HTML>


then use this Python script:
    import win32com.client
    import time
    navig = win32com.client.Dispatch('InternetExplorer.Application')
    navig.Navigate(r'file:///C:/tst3.htm')
    time.sleep(0.5)
    window = navig.Document.parentWindow
    print window.ooo.txt


and, you have:
    pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning 
None
    pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning 
None
    pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning 
None
    Mark Hammond is a genious


Good day (night?)
--
Michel Claveau





More information about the python-win32 mailing list