Skip to content

PEP 616: Add str.removeprefix and str.removesuffix methods #84120

@sweeneyde

Description

@sweeneyde
BPO 39939
Nosy @gvanrossum, @doerwalter, @rhettinger, @vstinner, @ericvsmith, @stevendaprano, @elazarg, @miss-islington, @tirkarthi, @sweeneyde
PRs
  • bpo-39939: Add str.removeprefix and str.removesuffix #18939
  • WIP: bpo-39939: Use removeprefix() and removesuffix() #19455
  • bpo-39939: Fix typo in docs: removeprefix is issue 39939 #20473
  • [3.9] bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 (GH-20473) #20474
  • Files
  • pep-9999.rst: Revised for typos
  • 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-04-22.21:16:57.018>
    created_at = <Date 2020-03-11.19:11:38.177>
    labels = ['interpreter-core', 'type-feature', '3.9']
    title = 'PEP 616: Add str.removeprefix and str.removesuffix methods'
    updated_at = <Date 2020-05-28.01:24:39.490>
    user = 'https://github.com/sweeneyde'

    bugs.python.org fields:

    activity = <Date 2020-05-28.01:24:39.490>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-04-22.21:16:57.018>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2020-03-11.19:11:38.177>
    creator = 'Dennis Sweeney'
    dependencies = []
    files = ['48989']
    hgrepos = []
    issue_num = 39939
    keywords = ['patch']
    message_count = 29.0
    messages = ['363958', '364020', '364028', '364277', '364284', '364313', '364581', '364582', '364643', '364657', '364664', '364671', '364681', '364701', '364703', '365036', '366879', '366882', '366886', '366890', '366897', '366960', '366964', '367049', '367052', '367055', '367056', '370158', '370160']
    nosy_count = 10.0
    nosy_names = ['gvanrossum', 'doerwalter', 'rhettinger', 'vstinner', 'eric.smith', 'steven.daprano', 'elazar', 'miss-islington', 'xtreak', 'Dennis Sweeney']
    pr_nums = ['18939', '19455', '20473', '20474']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue39939'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions