Skip to content

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