Problems with gencache on Windows NT

Mark Hammond MarkH at ActiveState.com
Fri May 4 20:44:57 EDT 2001


Alex Martelli wrote:

> "Geoff Talvola" <gtalvola at nameconnector.com> wrote in message


>>So far I haven't had any problems, but I haven't seen anyone else
>>recommending the use of EnsureDispatch, so I'll ask the question: Is there
>>any reason _not_ to just use EnsureDispatch?
>>
> 
> I'd be interested, because I don't know of any such reasons -- I've
> gradually switched just about all my COM clients to
>     from win32com.client.gencache import EnsureDispatch as Dispatch
> over from
>     from win32com.client import Dispatch
> so if there ARE counterindications I didn't notice I'd really
> like being informed about them!-)

   There is one slight problem remaining with events.  In some cases, 
the module is needed before it is generated. I can't remember the exact 
problem at the moment.

  However, this is just an implementation problem, and the only thing 
left from moving to use this as the default.

Mark.




More information about the Python-list mailing list