cpython: 258558e36d8a (original) (raw)

Mercurial > cpython

changeset 78661:258558e36d8a

Issue #14814: document the Interface APIs and fix various problems with the string representations (initial patch by Eli Bendersky). [#14814]

Nick Coghlan ncoghlan@gmail.com
date Mon, 20 Aug 2012 10:04:26 +1000
parents 4feb10457c13
children 811d91591f73
files Doc/library/ipaddress.rst Lib/ipaddress.py Lib/test/test_ipaddress.py
diffstat 3 files changed, 72 insertions(+), 30 deletions(-)[+] [-] Doc/library/ipaddress.rst 77 Lib/ipaddress.py 9 Lib/test/test_ipaddress.py 16

line wrap: on

line diff

--- a/Doc/library/ipaddress.rst +++ b/Doc/library/ipaddress.rst @@ -642,32 +642,73 @@ Interface objects .. class:: IPv4Interface(address)

+

+

+

+

+

+

+

.. class:: IPv6Interface(address)

Other Module Level Functions

--- a/Lib/ipaddress.py +++ b/Lib/ipaddress.py @@ -1336,7 +1336,8 @@ class IPv4Interface(IPv4Address): @property def with_prefixlen(self):

@property def with_netmask(self): @@ -1948,11 +1949,13 @@ class IPv6Interface(IPv6Address): @property def with_prefixlen(self):

@property def with_netmask(self):

@property def with_hostmask(self):

--- a/Lib/test/test_ipaddress.py +++ b/Lib/test/test_ipaddress.py @@ -1558,21 +1558,19 @@ class IpaddrUnitTest(unittest.TestCase): self.assertEqual(ipaddress.IPv6Network(1).version, 6) def testWithStar(self):

def testNetworkElementCaching(self):