class _IPv6Constants._reserved_networks should include fec0::/10
Dieses Issue hat noch niemand übernommen.
- 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_localproperty since according to RFC 3879, these addresses have been completely deprecated? (= breaking change) - keep the
is_site_localproperty to avoid breaking changes, but always returnFalseas there is no such address block anymore?
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
- gh-151927
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Ö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