[issue16396] Importing ctypes.wintypes on Linux gives a traceback

Meador Inge report at bugs.python.org
Tue Aug 20 03:42:30 CEST 2013


Meador Inge added the comment:

On Mon, Aug 12, 2013 at 7:11 AM, Ezio Melotti <report at bugs.python.org>wrote:

> Even if the patch is applied only on 3.4, I would still like to see the
> ValueError turned into ImportError for 2.7/3.3.
>

Why not raise an ImportError for all versions?  I don't see how
'ctypes.wintypes' is ever actually useful on anything but Windows.
 Allowing it to successfully import on non-Windows systems seems misleading.

----------

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


More information about the Python-bugs-list mailing list