str.title() is overzealous by upcasing combining marks inappropriately

Aperta
#56,946 21 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
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by reading the linked titletest.python and titletest.py demonstrations and reproduce their str.title() results. Then inspect the relevant string-titlecasing implementation and determine the intended treatment of combining marks. The issue is done when the demonstrated inappropriate upcasing is corrected and the behavior has regression coverage.

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

Descrizione

3.10 3.9 (EOL) stdlib type-bug
BPO 12737
Nosy @gvanrossum, @loewis, @terryjreedy, @ezio-melotti, @florentx, @iritkatriel
Files
  • titletest.python: demo showing python uses incorrect sense of \w for words in titlecasing
  • titletest.py: slightly improved demo
  • 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 2011-08-11.22:37:33.658>
    labels = ['type-bug', 'library', '3.9', '3.10']
    title = 'str.title() is overzealous by upcasing combining marks\tinappropriately'
    updated_at = <Date 2021-07-24.18:29:50.490>
    user = 'https://bugs.python.org/tchrist'
    

    bugs.python.org fields:

    activity = <Date 2021-07-24.18:29:50.490>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2011-08-11.22:37:33.658>
    creator = 'tchrist'
    dependencies = []
    files = ['22884', '23271']
    hgrepos = []
    issue_num = 12737
    keywords = []
    message_count = 20.0
    messages = ['141929', '141998', '142106', '142110', '143038', '143046', '144207', '144233', '144661', '144683', '144688', '144690', '144722', '144723', '144735', '379614', '379629', '379656', '398165', '398173']
    nosy_count = 9.0
    nosy_names = ['gvanrossum', 'loewis', 'terry.reedy', 'ezio.melotti', 'Arfrever', 'flox', 'tchrist', 'iritkatriel', 'vishvas.vasuki']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue12737'
    versions = ['Python 3.9', 'Python 3.10']
    

    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.