Skip to content Skip to sidebar Skip to footer

Python: Ipaddress.addressvalueerror: At Least 3 Parts Expected

An attribute of ipaddress.IPv4Network can be used to check if any IP address is reserved. In IPython: In [52]: IPv4Address(u'169.254.255.1').is_private Out[52]: False Yet if I try

Solution 1:

The expected input for ipaddress.IPv6Network() is different than ipaddress.IPv4Network(). If you remove or ipaddress.IPv6Network(unicoded).is_private from your code it works fine. You can read more from here.


Post a Comment for "Python: Ipaddress.addressvalueerror: At Least 3 Parts Expected"