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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14814>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to