Skip to content

gh-136752: Clarify documentation for IPv{N}Address.is_reserved #136794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jul 19, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make use of note and caution markers
  • Loading branch information
Matthieu Lienart committed Jul 19, 2025
commit 5a0b8e14b058cdefc1282c9f07c91e9126f656db
10 changes: 6 additions & 4 deletions Doc/library/ipaddress.rst
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,13 @@ write code that handles both IP versions correctly. Address objects are
``True`` if the address is noted as reserved by the IETF.
For IPv4, this is only ``240.0.0.0/4``, the ``Reserved`` address block.
For IPv6, this is all addresses `allocated <iana-ipv6-address-space_>`__ as
``Reserved by IETF`` for future use, except ``fec0::/10`` a former Site-Local scoped
address prefix (see :attr:`~IPv6Address.is_site_local`).
``Reserved by IETF`` for future use.

Note: ``is_reserved`` is not related to the IPv4 address block value of the
``Reserved-by-Protocol`` column in iana-ipv4-special-registry_.
.. note:: For IPv4, ``is_reserved`` is not related to the address block value of the
``Reserved-by-Protocol`` column in iana-ipv4-special-registry_.

.. caution:: For IPv6, ``fec0::/10`` a former Site-Local scoped address prefix is
currently excluded from that list (see :attr:`~IPv6Address.is_site_local`).

.. attribute:: is_loopback

Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy