Advertisement
Guest User

Untitled

a guest
May 27th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. >>> from ipaddress import ip_network
  2. >>> L = [ipaddress.ip_network(x) for x in ['ff00::/8', 'fd00::/8', '172.16.0.0/12', '10.0.0.0/8']]
  3. >>> L.sort()
  4. Traceback (most recent call last):
  5. File "<stdin>", line 1, in <module>
  6. File "/usr/lib/python3.5/ipaddress.py", line 652, in __lt__
  7. self, other))
  8. TypeError: 10.0.0.0/8 and fd00::/8 are not of the same version
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement