python / python/cpython

`Py_SETREF` and `Py_NewRef` is not explained in extending new types using a C extension

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

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

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

説明

Documentation

The documentation for extending new types using a C extension just uses Py_SETREF and Py_NewRef with no extra clarification as to what those functions do. It'd be nicer and more convenient if they were explained on-the-spot instead of having to search for it in the docs. They are also not explained in the previous topic (that explains Py_INCREF and Py_DECREF) and the other topics thereafter.

Linked PRs
  • gh-101234

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

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

はじめの一歩

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

調査の方向性

リンク先の新しい型のチュートリアルにある「データ属性をより細かく制御する」セクションから始めてください。Py_SETREF と Py_NewRef が使用されている箇所でそれらを説明し、周辺の参照カウントに関するトピックも一貫して扱われているか確認してください。読者が他の場所を調べなくても両方の関数を理解できるようになれば、ドキュメントは完成です。

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

評価

技術スタック
c
領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
25/100

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

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