summaryrefslogtreecommitdiff
path: root/Lib/ipaddress.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36845: validate integer network prefix when constructing IP networks ↵Miss Islington (bot)2019-05-141-0/+4
| | | | | | | (GH-13298) (cherry picked from commit 5e48e3db6f5a937023e99d89cef8884d22bd8533) Co-authored-by: Nicolai Moore <niconorsk@gmail.com>
* bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)Miss Islington (bot)2018-03-201-71/+38
| | | | | | | 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. (cherry picked from commit 10b134a07c898c2fbc5fd3582503680a54ed80a2) Co-authored-by: Xiang Zhang <angwerzx@126.com>
* bpo-20825: Containment test for ip_network in ip_network.Cheryl Sabella2017-10-221-6/+23
|
* bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879)s-sanjay2017-04-011-2/+4
| | | | | | | | 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
* Issue #20508: Improve exception message of IPv{4,6}Network.__getitem__Berker Peksag2016-06-111-2/+2
| | | | Patch by Gareth Rees.
* Issue #21386: Implement missing IPv4Address.is_global propertyBerker Peksag2016-06-111-0/+7
| | | | | | It was documented since 07a5610bae9d. Initial patch by Roger Luethi.
* Issue #26457: Fixed the subnets() methods in IP network classes for the caseSerhiy Storchaka2016-03-011-9/+9
| | | | | when resulting prefix length is equal to maximal prefix length. Based on patch by Xiang Zhang.
* Issue #16261: Converted some bare except statements to except statementsSerhiy Storchaka2015-05-201-2/+2
| | | | with specified exception type. Original patch by Ramchandra Apte.
* Issue #23103: Reduced the memory consumption of IPv4Address and IPv6Address.Serhiy Storchaka2015-03-071-13/+12
|
* Issue #23268: Fixed bugs in the comparison of ipaddress classes.Serhiy Storchaka2015-01-261-40/+7
|\
| * Issue #23268: Fixed bugs in the comparison of ipaddress classes.Serhiy Storchaka2015-01-261-40/+7
| |
* | Issue #23266: Restore the performance of ipaddress.collapse_addresses() whithSerhiy Storchaka2015-01-191-20/+16
| | | | | | | | duplicated addresses and simplify the code.
* | Issue #23133: Pickling of ipaddress objects now produces more compact andSerhiy Storchaka2015-01-181-7/+14
| | | | | | | | portable representation.
* | Issue #23266: Much faster implementation of ipaddress.collapse_addresses() ↵Antoine Pitrou2015-01-181-6/+10
| | | | | | | | when there are many non-consecutive addresses.
* | PEP 479: Use the return-keyword instead of raising StopIteration inside a ↵Raymond Hettinger2014-11-221-1/+1
| | | | | | | | generators.
* | Issue #22823: Use set literals instead of creating a set from a listRaymond Hettinger2014-11-091-1/+1
| |
* | Issue #22186: Fix typos in Lib/.Berker Peksag2014-10-191-1/+1
|\ \ | |/ | | | | Patch by Févry Thibault.
| * Issue #22186: Fix typos in Lib/.Berker Peksag2014-10-191-1/+1
| | | | | | | | Patch by Févry Thibault.
* | Refactor precomputed constants in the ipaddress module (suggested by ↵Antoine Pitrou2014-05-241-58/+67
| | | | | | | | Charles-François)
* | Issue #21513: Speedup some properties of IP addresses (IPv4Address, ↵Antoine Pitrou2014-05-231-51/+69
| | | | | | | | IPv6Address) such as .is_private or .is_multicast.
* | Issue #20826: Optimize ipaddress.collapse_addresses().Antoine Pitrou2014-05-151-27/+26
| |
* | Issue #21487: Optimize ipaddress.summarize_address_range() and ↵Antoine Pitrou2014-05-151-21/+7
| | | | | | | | ipaddress.{IPv4Network,IPv6Network}.subnets().
* | Issue #21486: Optimize parsing of netmasks in ipaddress.IPv4Network and ↵Antoine Pitrou2014-05-151-79/+119
| | | | | | | | ipaddress.IPv6Network.
* | Issue #16531: ipaddress.IPv4Network and ipaddress.IPv6Network now accept an ↵Antoine Pitrou2014-05-121-21/+74
| | | | | | | | (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. Smith2014-04-141-0/+29
|/
* Issue #19157: Include the broadcast address in the usuable hosts for IPv6Peter Moody2014-03-111-0/+12
| | | | in ipaddress.
* Merge fix for #18805 from 3.3Nick Coghlan2014-02-081-65/+83
|\
| * Issue #18805: better netmask validation in ipaddressNick Coghlan2014-02-081-65/+83
| |
* | #17400: correct handling of 100.64.0.0/10, fixing the docs and updating NEWSPeter Moody2013-10-241-12/+15
| |
* | #17400: fix documentation, add cache to is_global and correctly handle ↵Peter Moody2013-10-221-3/+5
| | | | | | | | 100.64.0.0/10
* | #17400; ipaddress should make it easy to identify rfc6598 addressesPeter Moody2013-10-211-11/+65
|/
* #18705: fix a number of typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-2/+2
|
* Fix a few typos and a double semicolon. Patch by Eitan Adler.Ezio Melotti2013-01-271-1/+1
|
* Issue #15888: fixing problems in ipaddress doctests. Patch by Chris JerdonekEli Bendersky2012-10-071-3/+4
|
* Close #14814: Avoid depending on struct by using newer features. Also use ↵Nick Coghlan2012-08-201-8/+6
| | | | enumerate where appropriate (patch by Serhiy Storchaka). Declaring PEP 3144 final at this point - any further changes to code or docs can go in new issues.
* Issue #14814: document the Interface APIs and fix various problems with the ↵Nick Coghlan2012-08-201-3/+6
| | | | string representations (initial patch by Eli Bendersky).
* Issue #14814: Remove redundant property from interface objects - prefixlen ↵Nick Coghlan2012-08-051-9/+1
| | | | can be accessed via the associated network object
* Issue 14814: Docs work showed some more cases of networks pretending to be ↵Nick Coghlan2012-08-051-180/+224
| | | | addresses and highlighted the weird approach to implementing the 'is_whatever' properties. Impl now illustrates far more clearly that networks have a property if both their network and broadcast addresses have that property
* Close #15559: Implementing __index__ creates a nasty interaction with the ↵Nick Coghlan2012-08-051-6/+0
| | | | bytes constructor. At least for 3.3, ipaddress objects must now be explicitly converted with int() and thus can't be passed directly to the hex() builtin.
* Issue 14814: The new systematic tests aren't just about error reporting any ↵Nick Coghlan2012-07-081-10/+13
| | | | more - change names accordingly. Added and tweaked some example to ensure they were covering the intended code paths
* Issue 14814: Remove dead function (noticed by Serhiy Storchaka)Nick Coghlan2012-07-081-18/+0
|
* Issue 14814: Further error case testing coverage and cleanupsNick Coghlan2012-07-081-25/+26
|
* Issue 14814: Ensure ordering semantics across all 3 entity types in ↵Nick Coghlan2012-07-081-67/+69
| | | | ipaddress are consistent and well-defined
* Issue 14814: Correctly return NotImplemented from ipaddress._BaseNetwork.__eq__Nick Coghlan2012-07-071-6/+6
|
* Issue 14814: Explain how to get more error detail in the ipaddress tutorial, ↵Nick Coghlan2012-07-071-2/+3
| | | | and tweak the display for octet errors in IPv4 (noticed the formatting problem when adding to the docs)
* Issue 14814: Make the ipaddress code easier to follow by using newer ↵Nick Coghlan2012-07-071-91/+67
| | | | language features (patch by Serhiy Storchaka)
* Issue 14814: Provide more informative error messages in ipaddress, and ↵Nick Coghlan2012-07-071-50/+91
| | | | ensure that errors are caught as expected
* Issue 14814: %s implies coercion with str() - remove a lot of redundant ↵Nick Coghlan2012-07-071-34/+33
| | | | str() calls from the ipaddress implementation
* Issue 14814: Eliminate bytes warnings from ipaddress by correctly throwing ↵Nick Coghlan2012-07-071-4/+12
| | | | an exception early when given bytes data of the wrong length. Also removes 2.x backwards compatibility code from associated tests.
* Issue 14814: Better handling of cases where octet/hextet parsing fails, ↵Nick Coghlan2012-07-071-3/+7
| | | | including ensuring that tracebacks are still clean even when calling class constructors directly