Terry J. Reedy <[email protected]> added the comment:
I confirmed that IDLE did not import ctypes before this issue. Serhiy, I
presume that the new code can be skipped, you are suggesting replacing
import ctypes
<use ctypes....>
with
try:
import ctypes
except ImportError:
pass # The ctypes-using fix is not essential.
else:
<use ctypes...>
But, in what sense is ctypes optional *on Windows* more than most other
modules? I don't see anything in the ctypes doc. It is normal to depend on
stdlib modules being present and not wrap imports.
Steve: does the Windows installer have an option to omit ctypes? I don't
remember one.
Anyone: do you know of any CPython Windows distributions that we care about
that omit ctypes?
Which of the following best describes the situation?
1. This is a theoretical concern that does not justify adding noise to the code.
2. This is a real concern, but so rare that the fix can be deferred to 3.6.7
and 3.7.1.
3. This is likely common enough that we should ask Ned to cherry-pick the patch
into 3.6.6 and 3.7.1.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33656>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com