Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> from ipaddress import ip_network
- >>> L = [ipaddress.ip_network(x) for x in ['ff00::/8', 'fd00::/8', '172.16.0.0/12', '10.0.0.0/8']]
- >>> L.sort()
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "/usr/lib/python3.5/ipaddress.py", line 652, in __lt__
- self, other))
- 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