Skip to content

Let's stay away from recommending re.prefixmatch.Β #10958

@mbyrnepr2

Description

@mbyrnepr2

Current problem

This issue is to prevent a feature that adds a Pylint check to recommend re.prefixmatch instead of re.match.

The reason is that there have been some concerns expressed by the Python community that there could potentially be a time sink as a result of pull requests getting created in projects to change occurrences of re.match to re.prefixmatch.

A further concern from the community is that linters will begin to drive that time sink by adding recommendations to make those code changes.

Desired solution

Let's not add such a Pylint check and, if a feature request is made for adding it, we can point to this issue for the context and rationale.

Additional context

https://discuss.python.org/t/add-re-prefixmatch-deprecate-re-match/105927

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions