Clarify __lazy_import__ docstring in bltinmodule.c

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

The docstring is in bltinmodule.c in the __lazy_import__ clinic input. Update the wording to refer to types.LazyImportType and describe the module as already lazily imported. Check the generated clinic code and tests or documentation that cover this builtin; done when the docstring reflects both requested corrections.

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

説明

docs topic-lazy-imports
Documentation

Docstring is currently:

/*[clinic input]
__lazy_import__ as builtin___lazy_import__

    name: object
    globals: object(c_default="NULL") = None
    locals: object(c_default="NULL") = None
    fromlist: object(c_default="NULL") = ()
    level: int = 0

Lazily imports a module.

Returns either the module to be imported or a imp.lazy_module object
which indicates the module to be lazily imported.
[clinic start generated code]*/

Should change because:

  • what is imp.lazy_module? should be types.LazyImportType
  • it's not to be [lazily] imported, it's [lazily] imported.
Linked PRs
  • gh-161716
主要言語
Python
スター
78.2k
フォーク
36.6k
平均マージ
19時間 57分
マージ済み PR(30日)
630

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

python/cpython のほかの issue

python/cpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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