[python-win32] win32com and the GIL

Mark Hammond skippy.hammond at gmail.com
Fri Dec 16 04:42:43 CET 2011


On 13/12/2011 1:22 PM, Peter Fraser wrote:
> Hello
>
> Can win32com be made to release the GIL when it calls into COM
> components? Presumably it doesn't do this by default .

It does do it by default and there is no way to have it *not* do it.

> I'm calling an apartment threaded COM component (VB6) and NOT passing
> any Python objects to that component (I promise).

Assuming you mean you aren't passing a COM object that happens to be 
implemented in Python, then it doesn't matter if you do - the GIL will 
be re-grabbed when necessary.

Cheers,

Mark

>
>
> thankyou and have a splendid day
>
> Peter
>
>
>
>
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32



More information about the python-win32 mailing list