[issue42495] socket.gethostbyaddr raises error if invalid unicode in hosts

Peter Hunt report at bugs.python.org
Mon Nov 30 09:40:11 EST 2020


Peter Hunt <peter at huntfx.uk> added the comment:

Ah, I just realised it may have been a different dash to the one that can be typed with the keyboard.

>From the wiki article (https://en.wikipedia.org/wiki/Dash), using either the "en" or "em" dash will cause the issue for me on Windows.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42495>
_______________________________________


More information about the Python-bugs-list mailing list