Skip to content

class _IPv6Constants._reserved_networks should include fec0::/10 #136832

@mlnrt

Description

@mlnrt

Bug report

This is a follow-up of: #136794

Bug description:

IPv6 address block fec0::/10 has been deprecated in 2004 as a "Site-Local scoped address prefix" and is now a `` (see Internet Protocol Version 6 Address Space and RFC 3879).

class _IPv6Constants._reserved_networks is still missing address block fec0::/10 from the list: https://github.com/python/cpython/blob/main/Lib/ipaddress.py#L2402-L2411

We should add that address block to the list and update the documentation (https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Address.is_reserved)

The question is do we also:

  • remove the is_site_local property since according to RFC 3879, these addresses have been completely deprecated? (= breaking change)
  • keep the is_site_local property to avoid breaking changes, but always return False as there is no such address block anymore?

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions