On Apr 03, 2013, at 03:04 PM, Adam Conrad wrote: >Colour me confused, but this seems to be behaving exactly as the manpage >suggests it can. Where is the actual bug in eglibc here?
It's a change in behavior somewhere between 2.13 and 2.17. >It seems monumentally unclever for python to raise a different exception type >depending on how gai() returns, which seems to be what's causing the headache >here. Except that it's been that way in Python for *years*. It might be worth changing this for 3.4, but it can't be changed in anything earlier. OTOH, by Python 3.3 it probably makes no sense to catch socket.error directly because of the exception hierarchy reorganization in PEP 3151. Now, socket.error *is* OSError and socket.gaierror is a subclass of OSError, so going forward, it makes sense just to catch OSError when you don't care about the distinction. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1154599 Title: getaddrinfo() returns -11 (EAI_SYSTEM) instead of -2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1154599/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs