python / python/cpython

Docs: `co_exceptiontable` missing in Data Model (Code objects)

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

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

docs
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Documentation

In the Data Model documentation for code objects:

https://docs.python.org/3/reference/datamodel.html#code-objects

The attribute co_exceptiontable (introduced in Python 3.11) is not listed or described.

This attribute is present on code objects and is used for exception handling.

Its absence in the documentation can be confusing for users working with bytecode or code objects.

It would be helpful to document co_exceptiontable, or clarify whether it is considered an implementation detail.

Happy to submit a PR if this is intended.

Linked PRs
  • gh-146370
  • gh-146405

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

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

はじめの一歩

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

調査の方向性

Issue でリンクされている Data Model ドキュメントのコードオブジェクトのセクションから始め、そこに記載されている属性を Python 3.11 のコードオブジェクト API と比較してください。まずリンクされている PR gh-146370 と gh-146405 を確認してください。co_exceptiontable のステータスが解決され、ドキュメントにその判断が反映された時点で作業は完了です。

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

評価

技術スタック
python
領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

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

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