summaryrefslogtreecommitdiffstats
path: root/Doc/library/ipaddress.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] docs: module page titles should not start with a link to themselves ↵Miss Islington (bot)2024-05-081-2/+2
| | | | | | | | (GH-117099) (#118791) docs: module page titles should not start with a link to themselves (GH-117099) (cherry picked from commit bcb435ee8ff41b5ec5d879ee0b6651f146a66151) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.12] gh-113171: gh-65056: Fix "private" (non-global) IP address ranges ↵Petr Viktorin2024-04-241-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-113179) (GH-113186) (GH-118177) * GH-113171: Fix "private" (non-global) IP address ranges (GH-113179) The _private_networks variables, used by various is_private implementations, were missing some ranges and at the same time had overly strict ranges (where there are more specific ranges considered globally reachable by the IANA registries). This patch updates the ranges with what was missing or otherwise incorrect. 100.64.0.0/10 is left alone, for now, as it's been made special in [1]. The _address_exclude_many() call returns 8 networks for IPv4, 121 networks for IPv6. [1] https://github.com/python/cpython/issues/61602 * GH-65056: Improve the IP address' is_global/is_private documentation (GH-113186) It wasn't clear what the semantics of is_global/is_private are and, when one gets to the bottom of it, it's not quite so simple (hence the exceptions listed). (cherry picked from commit 2a4cbf17af19a01d942f9579342f77c39fbd23c4) (cherry picked from commit 40d75c2b7f5c67e254d0a025e0f2e2c7ada7f69f) --------- Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
* [3.12] Fix version directive indents (GH-117719) (#117810)Hugo van Kemenade2024-04-121-3/+3
|
* [3.12] gh-115777: Fix double versionadded directives (GH-116269) (GH-116361)Miss Islington (bot)2024-03-051-11/+1
| | | | | (cherry picked from commit 0064dfa0919cc93257c351a609f99461f6e4e3ac) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Slight correct grammar (GH-28860)nobodyatandnothing2021-10-121-1/+1
|
* [docs] Improve the markup of powers (GH-28598)Serhiy Storchaka2021-09-281-3/+3
|
* bpo-36384: [doc] Mention CVE-2021-29921 fix in 3.8.12 (GH-27824)Łukasz Langa2021-08-191-0/+5
|
* bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099)Christian Heimes2021-05-021-2/+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-42061: Document __format__ for IP addresses (GH-23018)Teugea Ioan-Teodor2020-10-291-2/+34
| | | Automerge-Triggered-By: GH:ericvsmith
* bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 ↵Pete Wicken2020-03-091-1/+6
| | | | | | 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)opavlyuk2020-02-261-2/+24
| | | Automerge-Triggered-By: @asvetlov
* bpo-38738: Fix formatting of True and False. (GH-17083)Serhiy Storchaka2019-11-121-2/+2
| | | | | | | | | * "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>".
* bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)Xiang Zhang2018-03-211-1/+11
| | | | | | 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 Sabella2018-03-211-16/+47
| | | | Original patch by Jon Foster and Berker Peksag.
* Fix some ipaddress documentation errors (GH-6021)Xiang Zhang2018-03-081-8/+12
| | | | | | | * fix a typo: documention -> documentation * fix the type of IPv?Network.hostmask * add documentation about IPv?Network.netmask * fix IPv6Network constructor doc that extended netmasks are not supported
* bpo-20825: Containment test for ip_network in ip_network.Cheryl Sabella2017-10-221-0/+24
|
* bpo-27200: Fix several doctests (GH-604)Marco Buttu2017-04-271-3/+5
|
* bpo-29913: deprecate compare_networks() in documentation (GH-865)s-sanjay2017-03-301-0/+3
|
* Issue #28763: Use double hyphens (rendered as en-dashes) in numerical rangesSerhiy Storchaka2016-11-261-1/+1
| | | | in the documentation.
* Fix indentation of versionadded directive in IPv4Address.reverse_pointer docsBerker Peksag2016-08-041-1/+1
|
* Indent ipaddress.ip_address() example correctlyBerker Peksag2016-08-041-7/+4
|
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+1
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* Issue #27280: Fix typo in IPv6Network documentationBerker Peksag2016-06-101-1/+1
| | | | Patch by Arthur Carcano.
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-1/+1
| | | | Original patch by James Edwards.
* Issue #26736: Used HTTPS for external links in the documentation if possible.Serhiy Storchaka2016-05-071-2/+2
|
* merge 3.4 (#24963)Benjamin Peterson2015-08-301-1/+1
|\
| * fix spelling that was a bit confused (closes #24963)Benjamin Peterson2015-08-301-1/+1
| |
| * Back porting changeset db302b88fdb6 to 3.4 branch, which fixed multiple ↵Senthil Kumaran2015-06-151-1/+1
| | | | | | | | | | | | | | | | | | documentation typos. Related Issues: #issue21528 #issue24453
* | merge 3.4Benjamin Peterson2014-12-291-2/+2
|\ \ | |/
| * use a proper m-dashBenjamin Peterson2014-12-291-2/+2
| |
| * Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-6/+14
| |
* | Fix Issue #21528 - Fix documentation typosDonald Stufft2014-05-201-1/+1
| |
* | Issue #16531: ipaddress.IPv4Network and ipaddress.IPv6Network now accept an ↵Antoine Pitrou2014-05-121-0/+19
| | | | | | | | (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/+15
| |
* | whatsnew: ipaddress is_globalR David Murray2014-03-061-5/+13
| | | | | | | | | | Also tweaked the docs a bit and added the missing entry for the ipv6 is_global.
* | Merge from 3.3Andrew Kuchling2014-02-151-1/+1
|\ \ | |/ |/|
| * #20241: use correct RFC numberAndrew Kuchling2014-02-151-1/+1
| |
* | Close #20563: Declare ipaddress API stableNick Coghlan2014-02-081-7/+0
| |
* | Closes #20253: Merge typo fixZachary Ware2014-01-141-2/+2
|\ \ | |/
| * Issue #20253: Fixed a typo in the ipaddress docs that advertised anZachary Ware2014-01-141-2/+2
| | | | | | | | illegal attribute name. Found by INADA Naoki.
* | #17400: correct handling of 100.64.0.0/10, fixing the docs and updating NEWSPeter Moody2013-10-241-0/+6
| |
* | #17400: fix documentation, add cache to is_global and correctly handle ↵Peter Moody2013-10-221-1/+1
| | | | | | | | 100.64.0.0/10
* | #17400; NEWS and ipaddress.rst changePeter Moody2013-10-211-2/+5
|/
* Fix: >= and so on are usually called "comparison operators", not "logical ↵Georg Brandl2013-10-061-3/+3
| | | | operators". Found by Tom Kalt on docs@.
* Issue #17047: remove doubled words added in 3.3Terry Jan Reedy2013-03-111-3/+3
| | | | as reported by Serhiy Storchaka and Matthew Barnett.
* Issue #15888: fixing problems in ipaddress doctests. Patch by Chris JerdonekEli Bendersky2012-10-071-7/+14
|
* Issue #14814: document the Interface APIs and fix various problems with the ↵Nick Coghlan2012-08-201-18/+59
| | | | string representations (initial patch by Eli Bendersky).
* Issue #14814: Attempt to clarify network address and broadcast address for ↵Nick Coghlan2012-08-051-2/+4
| | | | less experienced users
* Issue #14814: Finish review of ipaddress network object docs (initial patch ↵Nick Coghlan2012-08-051-78/+135
| | | | was by Eli Bendersky)
* Issue 14814: Docs work showed some more cases of networks pretending to be ↵Nick Coghlan2012-08-051-74/+384
| | | | 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