Add functions to get the width in columns of a character

Open
#56,777 43 comments 0 reactions 1 assignee View on GitHub

@serhiy-storchaka is already working on this.

Since Dec 8, 2025.

Assessment

This issue has not been assessed yet.

Description

3.15 topic-unicode type-feature
BPO 12568
Nosy @malemburg, @loewis, @terryjreedy, @vstinner, @benjaminp, @ezio-melotti, @merwok, @bitdancer, @serhiy-storchaka, @Vermeille, @ishigoya, @bianjp
Files
  • locale_width.patch
  • width.py
  • 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 2018-11-08.21:45:08.936>
    created_at = <Date 2011-07-14.22:43:56.356>
    labels = ['type-feature', '3.8', 'expert-unicode']
    title = 'Add functions to get the width in columns of a character'
    updated_at = <Date 2018-11-08.21:45:08.934>
    user = 'https://github.com/vstinner'
    

    bugs.python.org fields:

    activity = <Date 2018-11-08.21:45:08.934>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-11-08.21:45:08.936>
    closer = 'vstinner'
    components = ['Unicode']
    creation = <Date 2011-07-14.22:43:56.356>
    creator = 'vstinner'
    dependencies = []
    files = ['23401', '24773']
    hgrepos = []
    issue_num = 12568
    keywords = ['patch']
    message_count = 39.0
    messages = ['140376', '140488', '141936', '145497', '145498', '145523', '145535', '145748', '145778', '155223', '155236', '155307', '155313', '155323', '155324', '155337', '155342', '155343', '155344', '155345', '155346', '155361', '155370', '155373', '155379', '155382', '156337', '156348', '181149', '238425', '255421', '297129', '297489', '297492', '297564', '297569', '298322', '323731', '329488']
    nosy_count = 19.0
    nosy_names = ['lemburg', 'loewis', 'terry.reedy', 'vstinner', 'benjamin.peterson', 'ezio.melotti', 'eric.araujo', 'Arfrever', 'r.david.murray', 'inigoserna', 'zeha', 'poq', 'Nicholas.Cole', 'tchrist', 'serhiy.storchaka', 'Socob', 'Guillaume Sanchez', 'ishigoya', 'bianjp']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue12568'
    versions = ['Python 3.8']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.