python / python/cpython

os.renames() creates directories if original name doesn't exist

未關閉
#80,132 10 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.8 (EOL) stdlib type-bug
主要語言
Python
星號
77.2k
分支
36k
平均合併
1 天 9 小時
30 天內合併 PR
558

描述

BPO 35951
Nosy @giampaolo, @cjerdonek, @serhiy-storchaka, @ammaraskar, @nanjekyejoannah
PRs
  • python/cpython#11827
  • 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 2019-02-09.17:10:42.908>
    labels = ['3.8', 'type-bug', 'library']
    title = "os.renames() creates directories if original name doesn't exist"
    updated_at = <Date 2019-02-17.11:12:33.384>
    user = 'https://github.com/cjerdonek'
    

    bugs.python.org fields:

    activity = <Date 2019-02-17.11:12:33.384>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-02-09.17:10:42.908>
    creator = 'chris.jerdonek'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35951
    keywords = ['patch']
    message_count = 10.0
    messages = ['335134', '335186', '335192', '335193', '335374', '335377', '335398', '335758', '335761', '335769']
    nosy_count = 5.0
    nosy_names = ['giampaolo.rodola', 'chris.jerdonek', 'serhiy.storchaka', 'ammar2', 'nanjekyejoannah']
    pr_nums = ['11827']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue35951'
    versions = ['Python 3.8']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

    1. 先讀完整個 Issue,再讀專案的貢獻指南。
    2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
    3. Fork 儲存庫,在一個分支上完成修改。
    4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

    研究方向

    首先定位 os.renames() 的實作,並檢視 issue 標題中描述的行為。接著檢查 PR #11827 以及相關的 Python 3.8 issue 歷史記錄,以了解提議的解決方案;當缺少原始路徑不再導致意外建立目錄時,即表示完成。

    由索引模型根據 Issue 內容生成。

    評估

    技術堆疊
    python
    領域
    operating-systems
    Issue 類型
    缺陷
    難度
    3/5
    預估耗時
    1-2 天
    活躍度
    停滯
    描述清晰度
    需要釐清
    新手友好度
    25/100

    把新 issue 寄到你的電子郵件信箱

    精選適合新手參與的 GitHub issue 摘要。