chdir __exit__ is not safe

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

test_chdir.py の最小再現から始め、提案されている方向性を理解するために既存の PR 29218、29220、gh-132982 を確認してください。再現を実行し、その後 chdir コンテキストマネージャーの実装とそのテストを追ってください。exit の安全でない動作が回帰テストでカバーされ、再現が失敗しなくなれば完了です。

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

説明

3.11 stdlib type-bug
BPO 45545
Nosy @warsaw, @eryksun, @FFY00, @ucodery
PRs
  • python/cpython#29218
  • python/cpython#29220
  • Files
  • test_chdir.py: minimal test script
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2021-10-20.22:54:45.172>
    labels = ['type-bug', '3.11']
    title = 'chdir __exit__ is not safe'
    updated_at = <Date 2021-10-26.17:30:32.350>
    user = 'https://github.com/ucodery'
    

    bugs.python.org fields:

    activity = <Date 2021-10-26.17:30:32.350>
    actor = 'ucodery'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2021-10-20.22:54:45.172>
    creator = 'ucodery'
    dependencies = []
    files = ['50377']
    hgrepos = []
    issue_num = 45545
    keywords = ['patch']
    message_count = 14.0
    messages = ['404534', '404550', '404552', '404557', '404568', '404613', '404718', '405011', '405012', '405019', '405021', '405022', '405025', '405052']
    nosy_count = 4.0
    nosy_names = ['barry', 'eryksun', 'FFY00', 'ucodery']
    pr_nums = ['29218', '29220']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45545'
    versions = ['Python 3.11']
    

    Linked PRs
    • gh-132982
    主要言語
    Python
    スター
    77.2k
    フォーク
    36k
    平均マージ
    1日 9時間
    マージ済み PR(30日)
    558

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

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

    はじめの一歩

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

    python/cpython のほかの issue

    python/cpython の issue をすべて見る

    似ている issue

    Python の issue をもっと見る

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

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