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 <[email protected]>
<http://bugs.python.org/issue26457>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com