R. David Murray added the comment:

getaddrinfo is a thin wrapper around the system call.  Have you tried the same 
thing in a C program and had it work?

My guess would be that the all-numeric 'hostname' is being treated as the 
integer form of an IP address.  I can't immediately find any documentation that 
addresses this for getaddrinfo, but the impression I get from googling is that 
turning numbers into ip addresses is not specified behavior but is what (most?) 
libc implementations do.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20418>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to