Skip to content

Instantly share code, notes, and snippets.

@digitalresistor
Created June 12, 2016 01:08
Show Gist options
  • Save digitalresistor/dc928ee160e7df76a6efff57c934ff5d to your computer and use it in GitHub Desktop.
Save digitalresistor/dc928ee160e7df76a6efff57c934ff5d to your computer and use it in GitHub Desktop.
Python 3.5 does not support IPv6 link-local with zone-indices
Python 3.5.0 (default, Oct 3 2015, 21:47:52)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ipaddress
>>> ipaddress.ip_address('fe80::aa20:66ff:fe3a:fa79%en0')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/xistence/.pyenv/versions/3.5.0/lib/python3.5/ipaddress.py", line 54, in ip_address
address)
ValueError: 'fe80::aa20:66ff:fe3a:fa79%en0' does not appear to be an IPv4 or IPv6 address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment