class _IPv6Constants._reserved_networks should include fec0::/10
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia in Lib/ipaddress.py, nella classe _IPv6Constants._reserved_networks, e rivedi la PR di follow-up collegata gh-151927; quindi controlla la sezione della documentazione di ipaddress a cui fa riferimento l'issue. Il lavoro è completato quando il comportamento e la documentazione di fec0::/10 sono stati aggiornati in modo coerente e la questione di compatibilità di is_site_local è stata risolta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- networking
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100