update the import machinery to only use __spec__

Đang mở
#65,961 34 bình luận 0 reaction 1 người được giao Xem trên GitHub

@brettcannon đang làm issue này rồi.

Từ ngày 8/12/2021.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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
    Ngôn ngữ chính
    Python
    Star
    77.2k
    Fork
    36k
    Merge trung bình
    1 ngày 9 giờ
    Pull request đã merge (30 ngày)
    558

    Hướng dẫn đóng góp

    Mở hướng dẫn đóng góp

    Bắt đầu từ đâu

    1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
    2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
    3. Fork repository và làm thay đổi trên một nhánh.
    4. Mở pull request có tham chiếu số hiệu của issue.

    Issue khác của python/cpython

    Tất cả issue của python/cpython

    Issue tương tự

    Thêm issue về Python

    Nhận issue mới trong hộp thư của bạn

    Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.