Tutorial offers dangerous advice about iterators: “__iter__() can just return self”

Đang mở
#52,623 16 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
documentation

Hướng nghiên cứu

Read the tutorial's iterator guidance and the attached issue8376.patch first; the payload does not name the documentation file. Confirm what the statement about iter() returning self implies, then update the tutorial so the advice is accurate and verify the resulting documentation wording.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

docs type-bug
BPO 8376
Nosy @birkenfeld, @rhettinger, @terryjreedy, @amauryfa, @pitrou, @merwok, @bitdancer, @andersk, @Usui22750
Files
  • issue8376.patch
  • 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 2010-04-12.06:35:57.093>
    labels = ['type-bug', '3.7', 'docs']
    title = 'Tutorial offers dangerous advice about iterators: \xe2\x80\x9c__iter__() can just return self\xe2\x80\x9d'
    updated_at = <Date 2017-07-13.12:29:41.820>
    user = 'https://github.com/andersk'
    

    bugs.python.org fields:

    activity = <Date 2017-07-13.12:29:41.820>
    actor = 'r.david.murray'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2010-04-12.06:35:57.093>
    creator = 'andersk'
    dependencies = []
    files = ['45088']
    hgrepos = []
    issue_num = 8376
    keywords = ['patch']
    message_count = 16.0
    messages = ['102918', '102951', '102955', '102961', '102963', '102966', '111155', '111196', '111197', '111198', '111201', '278638', '278640', '278641', '278805', '298280']
    nosy_count = 10.0
    nosy_names = ['georg.brandl', 'rhettinger', 'terry.reedy', 'amaury.forgeotdarc', 'pitrou', 'eric.araujo', 'r.david.murray', 'ysj.ray', 'andersk', 'Usui']
    pr_nums = []
    priority = 'low'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue8376'
    versions = ['Python 3.6', 'Python 3.7']
    

    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.