python / python/cpython

AF_DECnet is missing from socket.AddressFamily

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

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

3.12 3.13 3.14 stdlib topic-socket type-bug
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Bug report

Bug description:

This code populates the AddressFamily enum:

IntEnum._convert_(
        'AddressFamily',
        __name__,
        lambda C: C.isupper() and C.startswith('AF_'))

But AF_DECnet isn't all uppercase so it's currently excluded. Do we need the isupper() test? I don't see anything that begins with AF_ in socket other than the existing members of AddressFamily and AF_DECnet.

CPython versions tested on:

3.13

Operating systems tested on:

macOS

Linked PRs
  • gh-127548

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

AddressFamily が IntEnum.convert() によって設定される socket モジュールから始め、AF_* 名、特に AF_DECnet を確認します。リンクされている PR gh-127548 と既存の socket テストを確認してください。完了の条件は、他のアドレスファミリーのメンバーを後退させることなく、AF_DECnet が socket.AddressFamily に表現されていることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
networking
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
25/100

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

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