python / python/cpython

Improve the frozenset.is(sub|super)set docstrings

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

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

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

説明

Documentation

RE: Documentation provided by built-in function help()

While reviewing built-in methods in detail I made note of:

  • "help(frozenset)" issubset and issuperset methods both return bool type
Other comments that were not issues

See https://github.com/python/cpython/issues/129622#issuecomment-2633394435.

  • "help(slice)" third parameter typo
  • "help(range)" third parameter typo
  • "help(float)" quizzical hex method example
  • "help(bool)" is bit_length method also for absolute value of self?
  • "help(bool)" is_integer appears duck-like compatible with int (TypeError with float)
  • "help(bool)" from_bytes appears to return a bool from byte array

Regards,
'EntryLevelJobSeeker'

Linked PRs
  • gh-129637

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

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

はじめの一歩

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

調査の方向性

まず help(frozenset) を実行し、CPython のソースコードにある issubset と issuperset の docstring を確認します。それらの文言を、メソッドが bool を返す動作と比較してください。両方の docstring がその結果を正確に説明するようになれば、ドキュメントは完了です。リンクされている PR gh-129637 は、この作業がすでに進行中であることを示しています。

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

評価

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

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

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