COM access sooo slow !?

2005-08-13 Thread kowald
Hi everybody,

I'm using win32com.client.Dispatch() to access a COM object (a
database) from Python and in principle is works fine.

However, it is unbelievably slow :-(
It is 70 times slower than a C++ version of the same program !

Is this a well known problem of the Python COM interface or could it be
specific to this special COM object?

Any ideas?

Many thanks,

Axel

-- 
http://mail.python.org/mailman/listinfo/python-list


starting windows program from python based on file extension ?

2005-03-03 Thread kowald
Hi everybody,

I used python to build a HTML file and now I would like to
automatically start my browser to display this file. I guess I could
use os.system(), but then I had to specify a specific path to the
browser.

I wonder if it is possible to tell windows to open "myFile.html" using
the program that is registered to open html files (similar to double
clicking on the file).

Any idea how to do that from python ??

Many thanks,

   Alex

-- 
http://mail.python.org/mailman/listinfo/python-list