Hirokazu Yamamoto <ocean-c...@m2.ccsnet.ne.jp> added the comment:

> I’ve heard about import deadlock issues, and performance is not an
> issue in tests, so there is no reason to import in the function

distutils.msvc9compiler imports winreg internally,
and it only exists on windows, so importing distutils.msvc9.....
compiler may raise ImportError on Linux. So I imported only when
sys.platform == "win32".

Committed in r84760(py3k). And will be merged into other branches.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9313>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to