Søren Løvborg added the comment:
Proposed implementation patch attached. If this has any interest, I'll look
into expanding the patch to include documentation and unit tests.
Resulting behavior:
>>> import ipaddress
>>> ipaddress.IPv4Interface('10.0.0.1/8') + 1
IPv4Interface('10.0.0.2/8')
>>> ipaddress.IPv6Interface('fd00::1/64') + 1
IPv6Interface('fd00::2/64')
----------
keywords: +patch
Added file: http://bugs.python.org/file37277/ipaddress.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue22941>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com