update the import machinery to only use __spec__

未關閉
#65,961 34 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@brettcannon 已經在處理了。

開始於 2021年12月8日。

評估

這個 Issue 還沒有評估資料。

描述

interpreter-core topic-importlib type-feature
BPO 21762
Nosy @warsaw, @brettcannon, @ncoghlan, @ericsnowcurrently, @nanjekyejoannah
Dependencies
  • bpo-25791: Raise an ImportWarning when spec.parent/package isn't defined for a relative import
  • bpo-42132: Use specs instead of just loader in C code
  • 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 = 'https://github.com/brettcannon'
    closed_at = None
    created_at = <Date 2014-06-14.21:33:51.833>
    labels = ['interpreter-core', 'type-feature']
    title = 'update the import machinery to only use __spec__'
    updated_at = <Date 2022-02-04.20:50:24.662>
    user = 'https://github.com/ericsnowcurrently'
    

    bugs.python.org fields:

    activity = <Date 2022-02-04.20:50:24.662>
    actor = 'brett.cannon'
    assignee = 'brett.cannon'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2014-06-14.21:33:51.833>
    creator = 'eric.snow'
    dependencies = ['25791', '42132']
    files = []
    hgrepos = []
    issue_num = 21762
    keywords = []
    message_count = 13.0
    messages = ['220581', '220597', '220606', '220610', '258332', '258357', '258398', '258440', '258443', '258844', '258845', '379490', '412537']
    nosy_count = 5.0
    nosy_names = ['barry', 'brett.cannon', 'ncoghlan', 'eric.snow', 'nanjekyejoannah']
    pr_nums = []
    priority = 'low'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue21762'
    versions = ['Python 3.6']
    

    Linked PRs
    • gh-124377
    • gh-124380
    • gh-142046
    • gh-142055
    • gh-142165
    • gh-156053
    • gh-156123
    主要語言
    Python
    星號
    77.2k
    分支
    36k
    平均合併
    1 天 9 小時
    30 天內合併 PR
    558

    貢獻指南

    開啟貢獻指南

    從這裡開始

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

    python/cpython 的其他 Issue

    查看 python/cpython 的全部 Issue

    相似的 Issue

    更多 Python Issue

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

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