Skip to content

re.escape does not correctly escape newlines #86834

@MartinAltmayer

Description

@MartinAltmayer
BPO 42668
Nosy @ezio-melotti, @MartinAltmayer, @serhiy-storchaka
Files
  • test.py: simple test file
  • 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-12-17.14:41:45.387>
    created_at = <Date 2020-12-17.12:00:52.118>
    labels = ['expert-regex', '3.7', '3.8', '3.9', '3.10', 'type-feature', 'invalid']
    title = 're.escape does not correctly escape newlines'
    updated_at = <Date 2020-12-17.14:41:45.387>
    user = 'https://github.com/MartinAltmayer'

    bugs.python.org fields:

    activity = <Date 2020-12-17.14:41:45.387>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-12-17.14:41:45.387>
    closer = 'serhiy.storchaka'
    components = ['Regular Expressions']
    creation = <Date 2020-12-17.12:00:52.118>
    creator = 'MartinAltmayer'
    dependencies = []
    files = ['49689']
    hgrepos = []
    issue_num = 42668
    keywords = []
    message_count = 4.0
    messages = ['383237', '383239', '383240', '383247']
    nosy_count = 4.0
    nosy_names = ['ezio.melotti', 'mrabarnett', 'MartinAltmayer', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue42668'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions