Add utilities to "clean" surrogate code points from strings

Offen
#63,014 55 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
backend

Rechercherichtung

Start by reviewing linked PR gh-121219, then compare the historical convert_surrogates.py file and codecs_convert_escapes patches. Read dependencies bpo-22286 and bpo-23676 to understand the required error-handler support; done means the agreed surrogate-cleaning utilities and related behavior are implemented and validated.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

stdlib topic-unicode type-feature
BPO 18814
Nosy @malemburg, @ncoghlan, @pitrou, @vstinner, @ezio-melotti, @stevendaprano, @bitdancer, @yaseppochi, @vadmium, @serhiy-storchaka
Dependencies
  • bpo-22286: Allow backslashreplace error handler to be used on input
  • bpo-23676: Add support of UnicodeTranslateError in standard error handlers
  • Files
  • convert_surrogates.py
  • codecs_convert_escapes.patch
  • codecs_convert_escapes_2.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 2013-08-23.04:02:31.968>
    labels = ['3.8', 'type-feature', 'library']
    title = 'Add utilities to "clean" surrogate code points from strings'
    updated_at = <Date 2018-03-30.06:52:39.866>
    user = 'https://github.com/ncoghlan'
    

    bugs.python.org fields:

    activity = <Date 2018-03-30.06:52:39.866>
    actor = 'ncoghlan'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2013-08-23.04:02:31.968>
    creator = 'ncoghlan'
    dependencies = ['22286', '23676']
    files = ['36700', '38506', '38520']
    hgrepos = []
    issue_num = 18814
    keywords = ['patch']
    message_count = 55.0
    messages = ['195937', '195959', '195960', '196047', '196049', '196054', '196063', '225791', '225793', '225800', '225801', '225806', '225809', '225811', '225817', '225818', '225822', '225858', '225869', '225875', '225889', '225972', '227334', '227339', '227340', '227341', '227342', '227343', '227344', '227345', '227346', '227362', '227364', '227365', '227367', '227368', '227369', '238182', '238193', '238277', '238285', '238286', '238309', '242799', '242810', '242939', '251682', '251693', '251694', '251701', '251708', '251740', '251836', '251854', '314682']
    nosy_count = 11.0
    nosy_names = ['lemburg', 'ncoghlan', 'pitrou', 'vstinner', 'ezio.melotti', 'Arfrever', 'steven.daprano', 'r.david.murray', 'sjt', 'martin.panter', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue18814'
    versions = ['Python 3.8']
    

    Linked PRs
    • gh-121219
    Vorherrschende Sprache
    Python
    Sterne
    77.2k
    Forks
    36k
    Ø Merge
    1 T. 9 Std.
    Gemergte PRs (30 T.)
    558

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
    3. Forken Sie das Repository und arbeiten Sie in einem Branch.
    4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

    Mehr aus python/cpython

    Alle Issues in python/cpython

    Neue Issues direkt in Ihr Postfach

    Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.