Skip to content

Remove misleading parts of is_site_local() documentation #113152

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jstasiak
Copy link
Contributor

@jstasiak jstasiak commented Dec 15, 2023

In case of IPv6Address and IPv6Network is_private is very much not an equivalent or a replacement of is_site_local().

IPv6 is_private considers many ranges other than RFC 4193's fc00::/7 to be private (see _IPv6Constants._private_networks for the complete list).

IPv6Address.is_private goes even further and delegates to IPv4Address.is_private in case of an IPv4-mapped IPv6 address.


📚 Documentation preview 📚: https://cpython-previews--113152.org.readthedocs.build/

In case of IPv6Address and IPv6Network is_private is very much not an
equivalent or a replacement of is_site_local().

IPv6 is_private considers many ranges other than RFC 4193's fc00::/7 to
be private (see _IPv6Constants._private_networks for the complete list).

IPv6Address.is_private goes even further and delegates to
IPv4Address.is_private in case of an IPv4-mapped IPv6 address.
@jstasiak
Copy link
Contributor Author

Seems like a skip issue + skip news change to me but I'll do what's needed if requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants
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