socket.getaddrinfo('fe80::1%1', 80, 0, 0, 0, 0) output difference
for socket.getaddrinfo('fe80::1%1', 80, 0, 0, 0, 0)[0]
,
Interpreter | Output |
---|---|
PyPy2 | (10, 1, 6, '', ('fe80::1%lo', 80, 0L, 1L)) |
CPython2 | (10, 1, 6, '', ('fe80::1%lo', 80, 0, |
PyPy3 | (<AddressFamily.AF_INET6: 10>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('fe80::1%lo', 80, 0, 1)) |
CPython3 | (<AddressFamily.AF_INET6: 10>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('fe80::1', 80, 0, |
PyPy3 does not remove the %lo
.
Edit: CPython does properly return the scope ID, I must have run the wrong test code