[issue14814] Implement PEP 3144 (the ipaddress module)
Eli Bendersky
report at bugs.python.org
Fri Aug 10 05:47:38 CEST 2012
Eli Bendersky added the comment:
Attaching a new patch that fixes the with_* methods to be more consistent, and the relevant tests too. The doc is now consistent as well.
For some reason IPv6Interface.with_netmask also returned the prefixlen representation. The test justified it by quoting RFC3513/2.3 but I did not see anything there that really forces us to do that. Perhaps the with_netmask/with_hostmask representations are nonsensical for v6 and we keep them for v4 compatibility, but in that case let them be compatible!
----------
Added file: http://bugs.python.org/file26754/ipaddr_interface.2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14814>
_______________________________________
More information about the Python-bugs-list
mailing list