Jan Kaliszewski
f878d46e56
gh-120128: fix description of argument to ipaddress.collapse_addresses() ( #120131 )
...
The argument to collapse_addresses() is now described as an *iterable*
(rather than *iterator*).
2024-06-06 00:52:40 +03:00
Rafael Fontenelle
59630f92d8
Docs: Add class role for IPV{4,6}Address and fix a typo ( #118059 )
...
Add class role for IPV{4,6}Address and fix a typo
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2024-05-27 12:39:59 +00:00
Ned Batchelder
bcb435ee8f
docs: module page titles should not start with a link to themselves ( #117099 )
2024-05-08 20:34:40 +01:00
Hugo van Kemenade
94e9c35cd0
Fix version directive indents ( #117719 )
2024-04-12 13:30:42 +03:00
Jakub Stasiak
40d75c2b7f
GH-113171: Fix "private" (non-global) IP address ranges (GH-113179)
...
* GH-113171: Fix "private" (really non-global) IP address ranges
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.
I left 100.64.0.0/10 alone, for now, as it's been made special in [1]
and I'm not sure if we want to undo that as I don't quite understand the
motivation behind it.
The _address_exclude_many() call returns 8 networks for IPv4, 121
networks for IPv6.
[1] https://github.com/python/cpython/issues/61602
2024-03-22 17:49:56 +01:00
Jakub Stasiak
2a4cbf17af
GH-65056: Improve the IP address' is_global/is_private documentation (GH-113186)
...
* GH-65056: Improve the IP address' is_global/is_private documentation
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).
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-03-18 13:57:00 +01:00
Serhiy Storchaka
0064dfa091
gh-115777: Fix double versionadded directives (GH-116269)
2024-03-05 17:41:53 +02:00
Charles Machalow
ba8aa1fd37
gh-109466: Add ipv6_mapped property to IPv4Address ( #109467 )
...
Adds the `IPv4Address.ipv6_mapped` property.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-05 16:50:31 +00:00
nobodyatandnothing
1b11582f0e
Slight correct grammar (GH-28860)
2021-10-12 12:29:29 +03:00
Serhiy Storchaka
4f05f15d7b
[docs] Improve the markup of powers (GH-28598)
2021-09-28 22:40:57 +02:00
Łukasz Langa
0fd66e46b2
bpo-36384: [doc] Mention CVE-2021-29921 fix in 3.8.12 (GH-27824)
2021-08-19 10:55:49 +02:00
Christian Heimes
60ce8f0be6
bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099)
...
Reverts commit e653d4d8e8
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>
2021-05-02 14:00:35 +02:00
Teugea Ioan-Teodor
3317466061
bpo-42061: Document __format__ for IP addresses (GH-23018)
...
Automerge-Triggered-By: GH:ericvsmith
2020-10-29 15:17:59 -07:00
Pete Wicken
8e9c47a947
bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks (GH-18757)
...
The `.hosts()` method now returns the single address present in a /32 or /128 network.
2020-03-09 15:33:45 -07:00
opavlyuk
21da76d1f1
bpo-34788: Add support for scoped IPv6 addresses (GH-13772)
...
Automerge-Triggered-By: @asvetlov
2020-02-26 06:33:57 -08:00
Serhiy Storchaka
138ccbb022
bpo-38738: Fix formatting of True and False. (GH-17083)
...
* "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>".
2019-11-12 16:57:03 +02:00
Xiang Zhang
10b134a07c
bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016)
...
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.
2018-03-21 08:25:13 +08:00
Cheryl Sabella
5609b78392
bpo-18802: Add more details to ipaddress documentation (GH-6083)
...
Original patch by Jon Foster and Berker Peksag.
2018-03-21 08:09:15 +08:00
Xiang Zhang
e405096ea9
Fix some ipaddress documentation errors (GH-6021)
...
* 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
2018-03-08 12:24:36 +08:00
Cheryl Sabella
91dc64ba3f
bpo-20825: Containment test for ip_network in ip_network.
2017-10-22 23:39:49 +02:00
Marco Buttu
e65fcde85a
bpo-27200: Fix several doctests (GH-604)
2017-04-27 15:23:34 +03:00
s-sanjay
16f852345b
bpo-29913: deprecate compare_networks() in documentation (GH-865)
2017-03-30 15:44:29 +08:00
Serhiy Storchaka
c7b1a0bbe2
Issue #28763 : Use double hyphens (rendered as en-dashes) in numerical ranges
...
in the documentation.
2016-11-26 13:43:28 +02:00
Berker Peksag
85b6090768
Fix indentation of versionadded directive in IPv4Address.reverse_pointer docs
2016-08-04 17:25:40 +03:00
Berker Peksag
6bbc83986d
Indent ipaddress.ip_address() example correctly
2016-08-04 17:21:46 +03:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Berker Peksag
420e4d843b
Issue #27280 : Fix typo in IPv6Network documentation
...
Patch by Arthur Carcano.
2016-06-10 14:26:07 +03:00
Serhiy Storchaka
dba903993a
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:23 +03:00
Serhiy Storchaka
6dff0205b7
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:07 +03:00
Benjamin Peterson
1498461a7a
merge 3.4 ( #24963 )
2015-08-30 14:42:49 -07:00
Benjamin Peterson
0612ffe8c8
fix spelling that was a bit confused ( closes #24963 )
2015-08-30 14:42:38 -07:00
Senthil Kumaran
b4760efbad
Back porting changeset db302b88fdb6 to 3.4 branch, which fixed multiple documentation typos.
...
Related Issues:
#issue21528
#issue24453
2015-06-14 17:35:37 -07:00
Benjamin Peterson
53553c4376
merge 3.4
2014-12-28 22:14:23 -06:00
Benjamin Peterson
5feeebaa84
use a proper m-dash
2014-12-28 22:14:15 -06:00
Donald Stufft
8b852f111e
Fix Issue #21528 - Fix documentation typos
2014-05-20 12:58:38 -04:00
Antoine Pitrou
5fb195f854
Issue #16531 : ipaddress.IPv4Network and ipaddress.IPv6Network now accept an (address, netmask) tuple argument, so as to easily construct network objects from existing addresses.
2014-05-12 20:36:46 +02:00
Eric V. Smith
ebdaaf4087
Issue #20480 : Add ipaddress.reverse_pointer. Patch by Leon Weber.
2014-04-14 12:58:07 -04:00
Larry Hastings
3732ed2414
Merge in all documentation changes since branching 3.4.0rc1.
2014-03-15 21:13:56 -07:00
R David Murray
6674ac0873
whatsnew: ipaddress is_global
...
Also tweaked the docs a bit and added the missing entry for
the ipv6 is_global.
2014-03-06 11:51:37 -05:00
Andrew Kuchling
a3d0ffe2c6
Merge from 3.3
2014-02-15 17:22:41 -05:00
Andrew Kuchling
e5235f1624
#20241 : use correct RFC number
2014-02-15 17:11:06 -05:00
Nick Coghlan
96bb437ae8
Close #20563 : Declare ipaddress API stable
2014-02-09 09:18:26 +10:00
Zachary Ware
5c15424aa9
Closes #20253 : Merge typo fix
2014-01-14 09:10:33 -06:00
Zachary Ware
9774ce0cab
Issue #20253 : Fixed a typo in the ipaddress docs that advertised an
...
illegal attribute name. Found by INADA Naoki.
2014-01-14 09:09:48 -06:00
Peter Moody
e5019d5183
#17400 : correct handling of 100.64.0.0/10, fixing the docs and updating NEWS
2013-10-24 09:47:10 -07:00
Peter Moody
be9c1b133b
#17400 : fix documentation, add cache to is_global and correctly handle 100.64.0.0/10
2013-10-22 12:36:21 -07:00
Peter Moody
8ed30c15e8
#17400 ; NEWS and ipaddress.rst change
2013-10-21 16:16:51 -07:00
Georg Brandl
9ad417ee81
Fix: >= and so on are usually called "comparison operators", not "logical operators". Found by Tom Kalt on docs@.
2013-10-06 19:23:57 +02:00
Terry Jan Reedy
0f84764a09
Issue #17047 : remove doubled words added in 3.3
...
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 18:34:00 -04:00
Eli Bendersky
948af23a77
Issue #15888 : fixing problems in ipaddress doctests. Patch by Chris Jerdonek
2012-10-07 07:23:50 -07:00