Remove restriction against Semaphore having a negative value

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
operating-systems

Hướng nghiên cứu

Start with the linked barrier.py demonstration and trace the Semaphore implementation and its existing tests in CPython. Determine where the non-negative-value restriction is enforced and how semaphore initialization is specified. Done means negative initial values are accepted consistently and the barrier demonstration is covered by passing tests.

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

Mô tả

stdlib type-feature
BPO 17374
Nosy @rhettinger, @amauryfa, @pitrou, @ezio-melotti
Files
  • barrier.py: Demonstrate a simple barrier using a semaphore with a negative value
  • 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 2013-03-07.08:57:52.050>
    labels = ['type-feature', 'library']
    title = 'Remove restriction against Semaphore having a negative\tvalue'
    updated_at = <Date 2013-03-20.14:56:05.254>
    user = 'https://github.com/rhettinger'
    

    bugs.python.org fields:

    activity = <Date 2013-03-20.14:56:05.254>
    actor = 'pitrou'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2013-03-07.08:57:52.050>
    creator = 'rhettinger'
    dependencies = []
    files = ['29334']
    hgrepos = []
    issue_num = 17374
    keywords = []
    message_count = 12.0
    messages = ['183642', '183643', '183647', '183649', '183651', '183901', '184752', '184757', '184759', '184761', '184763', '184767']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'amaury.forgeotdarc', 'pitrou', 'ezio.melotti', 'neologix', 'sbt']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17374'
    versions = ['Python 3.4']
    

    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.