[issue27417] Call CoInitializeEx on startup

Nikita Nemkin report at bugs.python.org
Thu Jun 30 05:15:59 EDT 2016


Nikita Nemkin added the comment:

COM should be initialized on demand by C modules that need it. They might need STA or MTA, it's their choice to make.

Python core (ceval and builtins) doesn't need COM and shouldn't impose COM threading models on any threads it creates. Things like -X:STA are not Python's concern at all. Python code (interpreted) can't access COM objects directly, it always goes through C modules, which know better.

Also, COM using apps are very likely to be GUI apps and need STA main thread. MTA by default makes no sense.

PS. AMSI is insane. In what world would Pyhton interpteter send my code for analysis to who knows where and without even an option to disable it (because "security")?

----------
nosy: +nnemkin

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


More information about the Python-bugs-list mailing list