Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/d/i/digsby-HEAD/installer/py2exe/py2exe/samples/singlefile/comserver/test.py   digsby(Download)
d = Dispatch("Python.Interpreter")
print "2 + 5 =", d.Eval("2 + 5")
d.Exec("print 'hi via COM'")
 
d.Exec("import sys")

src/d/i/digsby-HEAD/installer/py2exe/py2exe/samples/pywin32/com_server/test_interp.py   digsby(Download)
 
interp = Dispatch("Python.Interpreter")
interp.Exec("import sys")
 
print "The COM object is being hosted in ", interp.Eval("sys.executable")

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32com/test/testMarshal.py   SublimeSpeech(Download)
            interp = win32com.client.Dispatch(interp)
 
        interp.Exec("import win32api")
        #print "The test thread id is %d, Python.Interpreter's thread ID is %d" % (myThread, interp.Eval("win32api.GetCurrentThreadId()"))
        pythoncom.CoUninitialize()

src/s/u/SublimeSpeech-HEAD/lib/pywin32bit/win32com/test/testMarshal.py   SublimeSpeech(Download)
            interp = win32com.client.Dispatch(interp)
 
        interp.Exec("import win32api")
        #print "The test thread id is %d, Python.Interpreter's thread ID is %d" % (myThread, interp.Eval("win32api.GetCurrentThreadId()"))
        pythoncom.CoUninitialize()

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32com/test/testMarshal.py   TrustRouter(Download)
            interp = win32com.client.Dispatch(interp)
 
        interp.Exec("import win32api")
        #print "The test thread id is %d, Python.Interpreter's thread ID is %d" % (myThread, interp.Eval("win32api.GetCurrentThreadId()"))
        pythoncom.CoUninitialize()

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32com/test/testMarshal.py   main(Download)
            interp = win32com.client.Dispatch(interp)
 
        interp.Exec("import win32api")
        #print "The test thread id is %d, Python.Interpreter's thread ID is %d" % (myThread, interp.Eval("win32api.GetCurrentThreadId()"))
        pythoncom.CoUninitialize()