python / python/cpython

class _IPv6Constants._reserved_networks should include fec0::/10

Offen
#136,832 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

stdlib type-bug
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
35.9k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

Bug report

This is a follow-up of: https://github.com/python/cpython/pull/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

Linked PRs
  • gh-151927

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne in Lib/ipaddress.py bei der Klasse _IPv6Constants._reserved_networks und prüfe anschließend den verlinkten Folge-PR gh-151927; sieh danach den im Issue referenzierten Abschnitt der ipaddress-Dokumentation nach. Erledigt ist die Aufgabe, wenn das Verhalten und die Dokumentation für fec0::/10 konsistent aktualisiert wurden und die Kompatibilitätsfrage zu is_site_local geklärt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
networking
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.