[issue26457] Error in ipaddress.address_exclude function
Xiang Zhang
report at bugs.python.org
Mon Feb 29 22:22:09 EST 2016
Xiang Zhang added the comment:
In old ipaddr.py, IPv4Network('192.0.2.0/31').subnet() returns [IPv4Network('192.0.2.0/32'), IPv4Network('192.0.2.1/32')], but ipaddress returns only [IPv4Network('192.0.2.0/32')].
It seems simply change end to end+1 in https://hg.python.org/cpython/file/tip/Lib/ipaddress.py#l921 can solve the problem and pass the test. But maybe there are some side effects.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26457>
_______________________________________
More information about the Python-bugs-list
mailing list