Skip to content

Submission for SC consideration: PEP 616: String methods to remove prefixes and suffixes #23

Closed
@sweeneyde

Description

@sweeneyde

I'd like to request that PEP 616 be reviewed by the Steering Council.

Title: String methods to remove prefixes and suffixes

Abstract: This is a proposal to add two new methods, removeprefix() and removesuffix(), to the APIs of Python's various string objects. These methods would remove a prefix or suffix (respectively) from a string, if present, and would be added to Unicode str objects, binary bytes and bytearray objects, and collections.UserString.

Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions