[issue27417] Call CoInitializeEx on startup

Steve Dower report at bugs.python.org
Wed Jun 29 17:22:47 EDT 2016


Steve Dower added the comment:

> pythoncom and comtypes use the value of sys.coinit_flags when imported

Good to know. Assume we'll add that as well.

Also, with respect to threading, we'd want to initialize on all new threads too. That will require a way to specify that a new thread should be STA/MTA. I'll think about this before proposing a solution (though since it's inherently an OS-specific specialization, having a separate function for this is a fairly safe way to do it).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27417>
_______________________________________


More information about the Python-bugs-list mailing list