class _IPv6Constants._reserved_networks should include fec0::/10
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 Lib/ipaddress.py 中的類別 _IPv6Constants._reserved_networks 開始,查看連結的後續 PR gh-151927,然後檢查 issue 中所引用的 ipaddress 文件區段。完成的標準是:fec0::/10 的行為與文件已一致更新,且 is_site_local 的相容性問題已解決。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- networking
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100