[issue27929] asyncio.AbstractEventLoop.sock_connect brooken for AF_BLUETOOTH

2016-09-01 Thread Robert Jordens
Changes by Robert Jordens : -- components: +asyncio -Argument Clinic nosy: +gvanrossum, haypo, yselivanov ___ Python tracker ___ ___ P

[issue27929] asyncio.AbstractEventLoop.sock_connect brooken for AF_BLUETOOTH

2016-09-01 Thread Robert Jordens
Robert Jordens added the comment: The error for inet_pton() is: >>> import socket >>> socket.inet_pton(socket.AF_BLUETOOTH, "00:12:34:56:78:99") Traceback (most recent call last): File "", line 1, in socket.error: [Errno 97] Address family not supported by protocol And the traceback in async

[issue27929] asyncio.AbstractEventLoop.sock_connect brooken for AF_BLUETOOTH

2016-09-01 Thread Robert Jordens
New submission from Robert Jordens: Since 3.5.2 sock_connect() tries to be smart and resolves addresses for you if they fail a socket.inet_pton() check. But inet_pton() only supports AF_INET(6) and does not work for other address families that socket otherwise supports just fine (e.g. AF_BLUET