Author louielu
Recipients Ilya.Kulakov, eric.smith, louielu, pmoody
Date 2017-03-25.03:58:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490414284.56.0.163905098735.issue29890@psf.upfronthosting.co.za>
In-reply-to
Content
The document here says: https://docs.python.org/3/library/ipaddress.html#interface-objects

""IPv4Interface is a subclass of IPv4Address""

trying with:

>>> ipaddress.IPv4Address(('192.168.128.0', '255.255.255.0'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/ipaddress.py", line 1284, in __init__
    self._ip = self._ip_int_from_string(addr_str)
  File "/usr/lib/python3.6/ipaddress.py", line 1118, in _ip_int_from_string
    raise AddressValueError("Expected 4 octets in %r" % ip_str)
ipaddress.AddressValueError: Expected 4 octets in "('192.168.128.0', '255.255.255.0')"

So the behavior of IPv4Interface seem to be correct?
History
Date User Action Args
2017-03-25 03:58:04louielusetrecipients: + louielu, eric.smith, pmoody, Ilya.Kulakov
2017-03-25 03:58:04louielusetmessageid: <1490414284.56.0.163905098735.issue29890@psf.upfronthosting.co.za>
2017-03-25 03:58:04louielulinkissue29890 messages
2017-03-25 03:58:04louielucreate