[New-bugs-announce] [issue26457] Error in ipaddress.address_exclude function
feng liang
report at bugs.python.org
Mon Feb 29 01:29:44 EST 2016
New submission from feng liang:
when i read in document 3.5.1,run the example in ipaddress.address_exclude function
>>> n1 = ip_network('192.0.2.0/28')
>>> n2 = ip_network('192.0.2.1/32')
>>> list(n1.address_exclude(n2))
I got:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python 3.5\lib\ipaddress.py", line 794, in address_exclude
s1, s2 = s1.subnets()
ValueError: not enough values to unpack (expected 2, got 1)
----------
components: Library (Lib)
messages: 260994
nosy: out
priority: normal
severity: normal
status: open
title: Error in ipaddress.address_exclude function
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26457>
_______________________________________
More information about the New-bugs-announce
mailing list