Re: Unexpected exception from socket.getaddrinfo on Unicode URL

2007-04-21 Thread John Nagle
Steve Holden wrote: > John Nagle wrote: > >> Here's a strange little bug. "socket.getaddrinfo" blows up >> if given a bad domain name containing ".." in Unicode. The >> same string in ASCII produces the correct "gaierror" exception. >> >> Actually, this deserves a documentation mention

Re: Unexpected exception from socket.getaddrinfo on Unicode URL

2007-04-21 Thread Steve Holden
John Nagle wrote: > Here's a strange little bug. "socket.getaddrinfo" blows up > if given a bad domain name containing ".." in Unicode. The > same string in ASCII produces the correct "gaierror" exception. > > Actually, this deserves a documentation mention. The "socket" module, > giv

Unexpected exception from socket.getaddrinfo on Unicode URL

2007-04-20 Thread John Nagle
Here's a strange little bug. "socket.getaddrinfo" blows up if given a bad domain name containing ".." in Unicode. The same string in ASCII produces the correct "gaierror" exception. Actually, this deserves a documentation mention. The "socket" module, given a Unicode string, calls the