[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

R. David Murray report at bugs.python.org
Fri Aug 27 00:31:54 CEST 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

Ah, I wondered if it was something like that (encoding=>UnicodeError).  It's not really a *unicode* error, it's a syntax error in the domain name construction (ie: it is invalid whether or not unicode is involved, it just isn't caught in 2.x for non-unicode domain names), but oh well.

As for 'label' vs 'domain subpart', I've never heard anyone refer to the parts of a domain as 'labels' even in technical conversations, but as I think about it further I haven't heard them referred to at all.  So I withdraw that suggestion :)

Putting the label in the error message would be a nice enhancement, but definitely low priority.

----------

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


More information about the Python-bugs-list mailing list