Skip to content

t = re.sub(".*", "*", src) has different ouput #85771

Description

@soyoo
mannequin
BPO 41605
Nosy @ronaldoussoren, @ericvsmith, @ezio-melotti, @serhiy-storchaka, @graingert
PRs
  • bpo-32308: Replace empty matches adjacent to a previous non-empty match in re.sub(). #4846
  • Files
  • python3 on windows.png
  • 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-08-21.18:49:53.534>
    created_at = <Date 2020-08-21.01:01:05.421>
    labels = ['expert-regex', 'invalid', 'type-bug', '3.7']
    title = 't = re.sub(".*", "*", src) has different ouput'
    updated_at = <Date 2020-08-21.18:49:53.531>
    user = 'https://bugs.python.org/soyoo'

    bugs.python.org fields:

    activity = <Date 2020-08-21.18:49:53.531>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-08-21.18:49:53.534>
    closer = 'serhiy.storchaka'
    components = ['Regular Expressions']
    creation = <Date 2020-08-21.01:01:05.421>
    creator = 'soyoo'
    dependencies = []
    files = ['49418']
    hgrepos = []
    issue_num = 41605
    keywords = ['patch']
    message_count = 4.0
    messages = ['375741', '375744', '375758', '375765']
    nosy_count = 7.0
    nosy_names = ['ronaldoussoren', 'eric.smith', 'ezio.melotti', 'mrabarnett', 'serhiy.storchaka', 'graingert', 'soyoo']
    pr_nums = ['4846']
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41605'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      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