Remove restriction against Semaphore having a negative value

Aperta
#61,576 12 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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']
    

    Lingua principale
    Python
    Stelle
    77.2k
    Fork
    36k
    Merge medio
    1g 9h
    PR unite (30g)
    558

    Guida per i contributori

    Apri la guida per i contributori

    Come iniziare

    1. Leggi tutta la issue e poi la guida ai contributi del progetto.
    2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
    3. Fai un fork del repository e lavora su un branch.
    4. Apri una pull request che faccia riferimento al numero della issue.

    Altre issue di python/cpython

    Tutte le issue di python/cpython

    Issue simili

    Altre issue su Python

    Ricevi le nuove issue nella tua casella

    Un breve riepilogo di issue GitHub adatte ai principianti.