Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove duplicate address in CommonTestMixin_v4.test_leading_zeros() (GH-26326) | Mariusz Felisiak | 2021-06-02 | 1 | -1/+0 |
| | |||||
* | bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172) | Pete Wicken | 2021-05-17 | 1 | -0/+6 |
| | | | | | For IPv4 mapped IPv6 addresses, defer privacy check to the mapped IPv4 address. Solves bug where public mapped IPv4 addresses are considered private by the IPv6 check. Automerge-Triggered-By: GH:gpshead | ||||
* | fix enum and backslash warnings (GH-25861) | Ethan Furman | 2021-05-04 | 1 | -1/+1 |
| | | | | - Enum warning in test_faulthandler - backslash warning in test_ipaddress | ||||
* | bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) | Christian Heimes | 2021-05-02 | 1 | -4/+17 |
| | | | | | | | | | Reverts commit e653d4d8e820a7a004ad399530af0135b45db27a and makes parsing even more strict. Like socket.inet_pton() any leading zero is now treated as invalid input. Signed-off-by: Christian Heimes <christian@python.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface ↵ | Ravi Teja P | 2020-06-29 | 1 | -0/+12 |
| | | | | | | | | (GH-21033) The __hash__() methods of classes IPv4Interface and IPv6Interface had issue of generating constant hash values of 32 and 128 respectively causing hash collisions. The fix uses the hash() function to generate hash values for the objects instead of XOR operation | ||||
* | bpo-40443: Remove unused imports in tests (GH-19804) | Victor Stinner | 2020-04-30 | 1 | -1/+0 |
| | |||||
* | bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 ↵ | Pete Wicken | 2020-03-09 | 1 | -4/+13 |
| | | | | | | networks (GH-18757) The `.hosts()` method now returns the single address present in a /32 or /128 network. | ||||
* | bpo-34788: Add support for scoped IPv6 addresses (GH-13772) | opavlyuk | 2020-02-26 | 1 | -23/+444 |
| | | | Automerge-Triggered-By: @asvetlov | ||||
* | bpo-32820: __format__ method for ipaddress (#5627) | ewosborne | 2019-09-12 | 1 | -0/+66 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bits method and test_bits * Cleaned up assert string * blurb * added docstring * Faster method, per Eric Smith * redoing as __format__ * added ipv6 method * test cases and cleanup * updated news * cleanup and NEWS.d * cleaned up old NEWS * removed cut and paste leftover * one more cleanup * moved to regexp, moved away from v4- and v6-specific versions of __format__ * More cleanup, added ipv6 test cases * more cleanup * more cleanup * cleanup * cleanup * cleanup per review, part 1 * addressed review comments around help string and regexp matching * wrapped v6 test strings. contiguous integers: break at 72char. with underscores: break so that it looks clean. * 's' and '' tests for pv4 and ipv6 * whitespace cleanup * Remove trailing whitespace * Remove more trailing whitespace * Remove an excess blank line | ||||
* | bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. ↵ | Serhiy Storchaka | 2019-08-04 | 1 | -24/+9 |
| | | | | | | | | | (GH-14996) There was a discrepancy between the Python and C implementations. Add singletons ALWAYS_EQ, LARGEST and SMALLEST in test.support to test mixed type comparison. | ||||
* | bpo-36845: validate integer network prefix when constructing IP networks ↵ | Nicolai Moore | 2019-05-14 | 1 | -0/+16 |
| | | | | (GH-13298) | ||||
* | bpo-27860: ipaddress: fix Interface missed some attributes (GH-12836) | Inada Naoki | 2019-04-15 | 1 | -1/+16 |
| | | | | | | | IPv4Interface and IPv6Interface did not has netmask and hostmask attributes when its argument is bytes or int. This commit extracts method for constructors of Network and Interface, and ensure Interface class always provides them. | ||||
* | bpo-27860: use cached_property (GH-12832) | Inada Naoki | 2019-04-15 | 1 | -27/+10 |
| | | | | * cached_property is more efficient than hand crafted cache. * In IPv[46]Network, `self.network.prefixlen` is same to `self._prefixlen`. | ||||
* | bpo-35734: ipaddress: remove unused methods (GH-11591) | Rémi Lapeyre | 2019-04-13 | 1 | -16/+1 |
| | |||||
* | bpo-36384: Remove check for leading zeroes in IPv4 addresses (GH-12577) | Joel Croteau | 2019-03-30 | 1 | -9/+3 |
| | | | | | | | | | Stop rejecting IPv4 octets with leading zeroes as ambiguously octal. Plenty of other tools generate decimal IPv4 octets with leading zeroes, so keeping this check hurts interoperability. Patch by Joel Croteau. | ||||
* | bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016) | Xiang Zhang | 2018-03-21 | 1 | -3/+23 |
| | | | | | | The result of host() was not empty when the network is constructed by a tuple containing an integer mask and only 1 bit left for addresses. | ||||
* | bpo-18802: Add more details to ipaddress documentation (GH-6083) | Cheryl Sabella | 2018-03-21 | 1 | -0/+3 |
| | | | | Original patch by Jon Foster and Berker Peksag. | ||||
* | bpo-20825: Containment test for ip_network in ip_network. | Cheryl Sabella | 2017-10-22 | 1 | -1/+86 |
| | |||||
* | bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879) | s-sanjay | 2017-04-01 | 1 | -8/+29 |
| | | | | | | | | the original logic was just comparing the network address but this is wrong because if the network address is equal then we need to compare the ip address for breaking the tie add more ip_interface comparison tests | ||||
* | Use sequence repetition instead of bytes constructor with integer argument. | Serhiy Storchaka | 2016-09-11 | 1 | -5/+5 |
| | |||||
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -3/+3 |
| | |||||
* | Issue #23804: Merge spelling and NEWS fixes from 3.5 | Martin Panter | 2016-07-11 | 1 | -2/+2 |
|\ | |||||
| * | English spelling and grammar fixes | Martin Panter | 2016-07-11 | 1 | -2/+2 |
| | | |||||
* | | Issue #20508: Improve exception message of IPv{4,6}Network.__getitem__ | Berker Peksag | 2016-06-11 | 1 | -0/+1 |
|/ | | | | Patch by Gareth Rees. | ||||
* | Issue #21386: Implement missing IPv4Address.is_global property | Berker Peksag | 2016-06-11 | 1 | -0/+3 |
| | | | | | | It was documented since 07a5610bae9d. Initial patch by Roger Luethi. | ||||
* | #20973: add total ordering tests for ipaddress | R David Murray | 2016-06-02 | 1 | -0/+33 |
| | | | | Patch by Tommy Beadle. | ||||
* | Issue #26457: Fixed the subnets() methods in IP network classes for the case | Serhiy Storchaka | 2016-03-01 | 1 | -0/+30 |
| | | | | | when resulting prefix length is equal to maximal prefix length. Based on patch by Xiang Zhang. | ||||
* | Remove a duplicate test_addresses key:value as identified by Vincent | Gregory P. Smith | 2016-01-02 | 1 | -1/+0 |
| | | | | Davis reviewing code. | ||||
* | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 | Martin Panter | 2015-11-02 | 1 | -2/+2 |
|\ | |||||
| * | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 1 | -2/+2 |
| | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar. | ||||
* | | Issue #23103: Reduced the memory consumption of IPv4Address and IPv6Address. | Serhiy Storchaka | 2015-03-07 | 1 | -0/+7 |
| | | |||||
* | | Issue #23268: Fixed bugs in the comparison of ipaddress classes. | Serhiy Storchaka | 2015-01-26 | 1 | -5/+42 |
|\ \ | |/ | |||||
| * | Issue #23268: Fixed bugs in the comparison of ipaddress classes. | Serhiy Storchaka | 2015-01-26 | 1 | -5/+42 |
| | | |||||
* | | Issue #23266: Restore the performance of ipaddress.collapse_addresses() whith | Serhiy Storchaka | 2015-01-18 | 1 | -5/+9 |
| | | | | | | | | duplicated addresses and simplify the code. | ||||
* | | Fixed tests for issue #23133 (pickling of IPv4Network was not tested). | Serhiy Storchaka | 2015-01-18 | 1 | -4/+4 |
| | | |||||
* | | Issue #23133: Pickling of ipaddress objects now produces more compact and | Serhiy Storchaka | 2015-01-18 | 1 | -7/+24 |
| | | | | | | | | portable representation. | ||||
* | | Issue #23266: Much faster implementation of ipaddress.collapse_addresses() ↵ | Antoine Pitrou | 2015-01-18 | 1 | -1/+2 |
| | | | | | | | | when there are many non-consecutive addresses. | ||||
* | | #20815: small readability improvements in ipaddress tests. | R David Murray | 2014-10-12 | 1 | -4/+9 |
|\ \ | |/ | |||||
| * | #20815: small readability improvements in ipaddress tests. | R David Murray | 2014-10-12 | 1 | -4/+9 |
| | | | | | | | | | | | | Patch by Michel Albert. We don't normally do patches that just tweak whitespace, but ipaddress is relatively new and the package maintainers approved the patch. | ||||
* | | Issue #16531: ipaddress.IPv4Network and ipaddress.IPv6Network now accept an ↵ | Antoine Pitrou | 2014-05-12 | 1 | -0/+113 |
| | | | | | | | | (address, netmask) tuple argument, so as to easily construct network objects from existing addresses. | ||||
* | | Issue #20480: Add ipaddress.reverse_pointer. Patch by Leon Weber. | Eric V. Smith | 2014-04-14 | 1 | -0/+8 |
|/ | |||||
* | Issue #20553. Use specific asserts in ipaddress tests. | Serhiy Storchaka | 2014-02-08 | 1 | -18/+17 |
|\ | |||||
| * | Issue #20553. Use specific asserts in ipaddress tests. | Serhiy Storchaka | 2014-02-08 | 1 | -18/+17 |
| | | |||||
* | | Merge fix for #18805 from 3.3 | Nick Coghlan | 2014-02-08 | 1 | -20/+53 |
|\ \ | |/ | |||||
| * | Issue #18805: better netmask validation in ipaddress | Nick Coghlan | 2014-02-08 | 1 | -20/+53 |
| | | |||||
* | | #17400: correct handling of 100.64.0.0/10, fixing the docs and updating NEWS | Peter Moody | 2013-10-24 | 1 | -1/+3 |
| | | |||||
* | | #17400: fix documentation, add cache to is_global and correctly handle ↵ | Peter Moody | 2013-10-22 | 1 | -0/+1 |
| | | | | | | | | 100.64.0.0/10 | ||||
* | | #17400; ipaddress should make it easy to identify rfc6598 addresses | Peter Moody | 2013-10-21 | 1 | -0/+9 |
|/ | |||||
* | Issue #14814: document the Interface APIs and fix various problems with the ↵ | Nick Coghlan | 2012-08-20 | 1 | -9/+7 |
| | | | | string representations (initial patch by Eli Bendersky). | ||||
* | Issue #14814: Remove redundant property from interface objects - prefixlen ↵ | Nick Coghlan | 2012-08-05 | 1 | -2/+2 |
| | | | | can be accessed via the associated network object |