Provide a way for potentially long runtime difflib algorithms to be aborted by the caller (and report progress?)

Aperta
#69,092 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Start by reading the difflib SequenceMatcher ratio() and quick_ratio() entry points and review the linked difflib-diff.patch. Determine the caller-abort and progress-reporting API requirements, then add focused tests showing cancellation and progress behavior; done means the supported behavior is specified and verified.

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

Descrizione

stdlib type-feature
BPO 24904
Nosy @tim-one, @rhettinger, @gpshead, @rbtcollins, @jftuga
Files
  • difflib-diff.patch: Adds timeout feature to difflib SequenceMatcher ratio() and quick_ratio()
  • 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 2015-08-20.22:18:07.911>
    labels = ['type-feature', 'library']
    title = 'Provide a way for potentially long runtime difflib algorithms to be aborted by the caller (and report progress?)'
    updated_at = <Date 2022-02-07.13:36:55.864>
    user = 'https://github.com/jftuga'
    

    bugs.python.org fields:

    activity = <Date 2022-02-07.13:36:55.864>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2015-08-20.22:18:07.911>
    creator = 'jftuga'
    dependencies = []
    files = ['40217']
    hgrepos = []
    issue_num = 24904
    keywords = ['patch']
    message_count = 5.0
    messages = ['248919', '248920', '248921', '248922', '412718']
    nosy_count = 5.0
    nosy_names = ['tim.peters', 'rhettinger', 'gregory.p.smith', 'rbcollins', 'jftuga']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue24904'
    versions = ['Python 3.5']
    

    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.