Skip to content

re.escape should not escape underscore #46902

@rsc

Description

@rsc
mannequin
BPO 2650
Nosy @birkenfeld, @amauryfa, @abalkin, @pitrou, @benjaminp, @ezio-melotti
Files
  • re.patch: patch to python svn trunk (2.6a2+)
  • re.patch
  • re.patch: patch using enumerate and frozenset
  • re_patch.diff: Compilation of previous patches, testing for more characters included on the ASCII table
  • test_re.diff
  • test_re.diff
  • issue2650.diff: Patch to add '_' to the non-escaped chars.
  • 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 = 'https://github.com/ezio-melotti'
    closed_at = <Date 2011-04-10.10:00:23.726>
    created_at = <Date 2008-04-17.14:14:08.568>
    labels = ['expert-regex', 'easy', 'type-bug']
    title = 're.escape should not escape underscore'
    updated_at = <Date 2011-04-10.10:00:23.726>
    user = 'https://bugs.python.org/rsc'

    bugs.python.org fields:

    activity = <Date 2011-04-10.10:00:23.726>
    actor = 'ezio.melotti'
    assignee = 'ezio.melotti'
    closed = True
    closed_date = <Date 2011-04-10.10:00:23.726>
    closer = 'ezio.melotti'
    components = ['Regular Expressions']
    creation = <Date 2008-04-17.14:14:08.568>
    creator = 'rsc'
    dependencies = []
    files = ['10080', '10084', '10130', '10215', '20860', '21096', '21390']
    hgrepos = []
    issue_num = 2650
    keywords = ['patch', 'easy']
    message_count = 43.0
    messages = ['65585', '65590', '65599', '65600', '65708', '65721', '65923', '66386', '66416', '66418', '66419', '66420', '66421', '66422', '66423', '68208', '68785', '68786', '68895', '68910', '92548', '122408', '125746', '125770', '125778', '126138', '126141', '126168', '126176', '126177', '126181', '126184', '126185', '130719', '130783', '130821', '130930', '132082', '132084', '132085', '132087', '132838', '133461']
    nosy_count = 17.0
    nosy_names = ['georg.brandl', 'amaury.forgeotdarc', 'belopolsky', 'foom', 'pitrou', 'rsc', 'timehorse', 'benjamin.peterson', 'zanella', 'donlorenzo', 'ezio.melotti', 'bjourne', 'mortenlj', 'mrabarnett', 'SilentGhost', 'swamiyeswanth', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2650'
    versions = ['Python 3.2']

    Metadata

    Metadata

    Assignees

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions