<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/ipaddress.py, branch 3.10</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/ipaddress.py?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/ipaddress.py?h=3.10'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2025-06-03T14:21:25Z</updated>
<entry>
<title>[3.10] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH-134836) (GH-135089)</title>
<updated>2025-06-03T14:21:25Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2025-06-03T14:21:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c71ea4ba069c9e17469d349de0f6a2feda9848db'/>
<id>urn:sha1:c71ea4ba069c9e17469d349de0f6a2feda9848db</id>
<content type='text'>
(cherry picked from commit d83576bf48d07d5e29d5d171c4e25afb048622aa)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.10] gh-123409: fix `IPv6Address.reverse_pointer` for IPv4-mapped addresses (GH-123419) (GH-135088)</title>
<updated>2025-06-03T14:01:08Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2025-06-03T14:01:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a1f75d95d6fdcf4be99f58b702c5b0947d7e883'/>
<id>urn:sha1:0a1f75d95d6fdcf4be99f58b702c5b0947d7e883</id>
<content type='text'>
Fix functionality that was broken with better textual representation for IPv4-mapped addresses (gh-87799)
(cherry picked from commit 77a2fb4bf1a1b160d6ce105508288fc77f636943)

Co-authored-by: Bénédikt Tran &lt;10796600+picnixz@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.10] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) (GH-134614)</title>
<updated>2025-06-03T13:55:27Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2025-06-03T13:55:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c0e26585254cde2b25385c19c3b63550de4d6351'/>
<id>urn:sha1:c0e26585254cde2b25385c19c3b63550de4d6351</id>
<content type='text'>
Limit length of IP address string to 39

(cherry picked from commit 47f1161d3a2bec52b5b5e952150141709c247da2)

Co-authored-by: Seth Michael Larson &lt;seth@python.org&gt;
Co-authored-by: Hugo van Kemenade &lt;1324225+hugovk@users.noreply.github.com&gt;
Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;
Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>[3.10] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (GH-29345) (GH-135079)</title>
<updated>2025-06-03T13:49:38Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2025-06-03T13:49:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=24bd1834ca5b27e6efd5a4b271eaa58bb40f7dcf'/>
<id>urn:sha1:24bd1834ca5b27e6efd5a4b271eaa58bb40f7dcf</id>
<content type='text'>
Represent IPv4-mapped IPv6 address as x:x:x:x:x:x:d.d.d.d,
where the 'x's are the hexadecimal values
of the six high-order 16-bit pieces of the address,
and the 'd's are the decimal values
of the four low-order 8-bit pieces of the address
(standard IPv4 representation).

(cherry picked from commit f22bf8e3cf899896cf587099d29290cb43aa9724)

Co-authored-by: opavliuk &lt;40970635+opavlyuk@users.noreply.github.com&gt;
Co-authored-by: blurb-it[bot] &lt;43283697+blurb-it[bot]@users.noreply.github.com&gt;
Co-authored-by: Andrew Svetlov &lt;andrew.svetlov@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.10] gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063) (GH-134480)</title>
<updated>2025-06-02T15:56:01Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2025-06-02T15:56:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=880adf6c318d73d6cf967e4d957d286aad5c5ecf'/>
<id>urn:sha1:880adf6c318d73d6cf967e4d957d286aad5c5ecf</id>
<content type='text'>
(cherry picked from commit f3fc0c16e08b317cb201cf1073e934e6909f1251)

Co-authored-by: Mike Salvatore &lt;mike.s.salvatore@gmail.com&gt;</content>
</entry>
<entry>
<title>[3.10] gh-122792: Make IPv4-mapped IPv6 address properties consistent with IPv4 (GH-122793) (GH-123819)</title>
<updated>2024-12-03T17:07:43Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2024-12-03T17:07:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b58da409aac90123c1159916908a4c49144925ee'/>
<id>urn:sha1:b58da409aac90123c1159916908a4c49144925ee</id>
<content type='text'>
Make IPv4-mapped IPv6 address properties consistent with IPv4.
(cherry picked from commit 76a1c5d18312712baed4699fe7333abb050ec9b7)

Co-authored-by: Seth Michael Larson &lt;seth@python.org&gt;
Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</content>
</entry>
<entry>
<title>[3.10] gh-113171: gh-65056: Fix "private" (non-global) IP address ranges (GH-113179) (GH-113186) (GH-118177) (GH-118229)</title>
<updated>2024-05-07T09:56:13Z</updated>
<author>
<name>Petr Viktorin</name>
<email>encukou@gmail.com</email>
</author>
<published>2024-05-07T09:56:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c62c9e518b784fe44432a3f4fc265fb95b651906'/>
<id>urn:sha1:c62c9e518b784fe44432a3f4fc265fb95b651906</id>
<content type='text'>
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

In 3.10 and below, is_private checks whether the network and broadcast
address are both private.
In later versions (where the test wss backported from), it checks
whether they both are in the same private network.

For 0.0.0.0/0, both 0.0.0.0 and 255.225.255.255 are private,
but one is in 0.0.0.0/8 ("This network") and the other in
255.255.255.255/32 ("Limited broadcast").

---------

Co-authored-by: Jakub Stasiak &lt;jakub@stasiak.at&gt;</content>
</entry>
<entry>
<title>bpo-46415: Use f-string for ValueError in ipaddress.ip_{address,network,interface} helper functions (GH-30642)</title>
<updated>2022-05-03T12:37:17Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-05-03T12:37:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5f709bdb86261fdba3ea8e5fd529f8af9fca4f42'/>
<id>urn:sha1:5f709bdb86261fdba3ea8e5fd529f8af9fca4f42</id>
<content type='text'>
`IPv*Network` and `IPv*Interface` constructors accept a 2-tuple of
(address description, netmask) as the address parameter.
When the tuple-based address is used errors are not propagated
correctly through the `ipaddress.ip_*` helper because of the %-formatting now expecting several arguments:

	In [7]: ipaddress.ip_network(("192.168.100.0", "fooo"))
        ...
	TypeError: not all arguments converted during string formatting

Compared to:

	In [8]: ipaddress.IPv4Network(("192.168.100.0", "foo"))
        ...
	NetmaskValueError: 'foo' is not a valid netmask

Use an f-string to make sure the error is always properly formatted.

Co-authored-by: Jelle Zijlstra &lt;jelle.zijlstra@gmail.com&gt;
(cherry picked from commit 52dc9c3066bcdc67a7a45d41cf158ecb1434d5f3)

Co-authored-by: Thomas Cellerier &lt;thomascellerier@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172)</title>
<updated>2021-05-17T19:42:08Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-17T19:42:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a44bb6ddb17538b7b2096d13eb79a1208bd97f34'/>
<id>urn:sha1:a44bb6ddb17538b7b2096d13eb79a1208bd97f34</id>
<content type='text'>
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
(cherry picked from commit 83f0f8d62f279f846a92fede2244beaa0149b9d8)

Co-authored-by: Pete Wicken &lt;2273100+JamoBox@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099)</title>
<updated>2021-05-02T12:00:35Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2021-05-02T12:00:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=60ce8f0be6354ad565393ab449d8de5d713f35bc'/>
<id>urn:sha1:60ce8f0be6354ad565393ab449d8de5d713f35bc</id>
<content type='text'>
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 &lt;christian@python.org&gt;

Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</content>
</entry>
</feed>
