Skip to content

[C API] No efficient C API to get UTF-8 string from unicode object. #83268

Description

@methane
BPO 39087
Nosy @vstinner, @methane, @serhiy-storchaka
PRs
  • bpo-39087: Add _PyUnicode_GetUTF8Buffer() #17659
  • bpo-39087: Make PyUnicode_AsUTF8AndSize faster. #17683
  • bpo-39087: Optimize PyUnicode_AsUTF8AndSize(). #18327
  • bpo-39087: Use _PyUnicode_GetUTF8Buffer() in fileobject.c #18984
  • Revert "bpo-39087: Add _PyUnicode_GetUTF8Buffer()" #18985
  • Files
  • bench-asutf8.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 = <Date 2020-03-14.06:59:47.614>
    created_at = <Date 2019-12-18.12:10:15.464>
    labels = ['expert-C-API', 'type-feature', '3.9']
    title = '[C API] No efficient C API to get UTF-8 string from unicode object.'
    updated_at = <Date 2020-03-14.11:00:07.223>
    user = 'https://github.com/methane'

    bugs.python.org fields:

    activity = <Date 2020-03-14.11:00:07.223>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-03-14.06:59:47.614>
    closer = 'methane'
    components = ['C API']
    creation = <Date 2019-12-18.12:10:15.464>
    creator = 'methane'
    dependencies = []
    files = ['48879']
    hgrepos = []
    issue_num = 39087
    keywords = ['patch']
    message_count = 17.0
    messages = ['358623', '358662', '358663', '358664', '358665', '358666', '358670', '358673', '358778', '358860', '361284', '361285', '362766', '364141', '364142', '364146', '364151']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'methane', 'serhiy.storchaka']
    pr_nums = ['17659', '17683', '18327', '18984', '18985']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue39087'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions