Serhiy Storchaka added the comment: What should be correct behavior? Raise an exception, return '[::1]spam' as hostname, or left all as is? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue20271> _______________________________________