[issue19451] urlparse accepts invalid hostnames
R. David Murray
report at bugs.python.org
Wed Oct 30 15:14:46 CET 2013
R. David Murray added the comment:
Python often defaults to the practical over the strictly-conforming (unless there is a 'strict' flag :) We generally follow the lead of the browsers in implementing our web related modules.
The situation here appears to be a real mess. Here's an interesting overview on the just the DNS question:
http://networkadminkb.com/KB/a156/windows-2003-dns-and-the-underscore.aspx
Given that changing this would be a backward incompatible change, I recommend closing this as won't fix. I suspect the long term trend will be that everyone will eventually accept underscores, regardless of what the RFCs say.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19451>
_______________________________________
More information about the Python-bugs-list
mailing list