python / python/cpython

class _IPv6Constants._reserved_networks should include fec0::/10

オープン
#136,832 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

stdlib type-bug
主要言語
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_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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。