Skip to content

float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator #78135

@vstinner

Description

@vstinner
BPO 33954
Nosy @mdickinson, @vstinner, @ericvsmith, @ezio-melotti, @serhiy-storchaka, @tirkarthi
PRs
  • bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() #10623
  • [3.7] bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) #10717
  • [3.7] bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) #10718
  • [3.6] bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718) #10720
  • bpo-33954: Fix compiler warning in _PyUnicode_FastFill() #10737
  • [3.7] bpo-33954: Rewrite FILL() macro of unicodeobject.c #10738
  • [3.6] bpo-33954: Rewrite FILL() macro of unicodeobject.c #10740
  • 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-26.16:06:00.710>
    created_at = <Date 2018-06-25.08:23:46.008>
    labels = ['3.7', '3.8', 'expert-unicode']
    title = "float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator"
    updated_at = <Date 2018-11-27.13:32:20.395>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2018-11-27.13:32:20.395>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-11-26.16:06:00.710>
    closer = 'vstinner'
    components = ['Unicode']
    creation = <Date 2018-06-25.08:23:46.008>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33954
    keywords = ['patch']
    message_count = 14.0
    messages = ['320403', '320635', '320669', '330157', '330211', '330429', '330431', '330444', '330445', '330494', '330510', '330511', '330517', '330518']
    nosy_count = 6.0
    nosy_names = ['mark.dickinson', 'vstinner', 'eric.smith', 'ezio.melotti', 'serhiy.storchaka', 'xtreak']
    pr_nums = ['10623', '10717', '10718', '10720', '10737', '10738', '10740']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue33954'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions