Guido van Rossum added the comment: > Why validate at all?
Because (at least for the IP 4/6 protocols) when you give a host name Python's socket code will do a synchronous DNS lookup which would hold up the entire event loop until it's done. This would be a major problem in some cases, so we want to disallow it completely. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27136> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com