>You write that socket.herror and socket.gaierror may both take either >a string or a pair of error number/message. Is this correct, or was >that a cut-n-paste error from socket.error? yes, it is a cut-n-paste error. herror and gaierror is always a 2-tuple. >You also write that socket.gethostbyname may raise socket.herror. Is >this true? It seems that you'll always get socket.gaierror instead. >I've changed it to say that gethostbyname_ex may raise herrors. with C API gethostbyname() should return h_error. Python code internaly uses getnameinfo/getaddrinfo, so it returns socket.gaierror. you right. itojun
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4