Skip to content

Conversation

@akx
Copy link

@akx akx commented Dec 12, 2025

This PR follows up on #13166 to use .removesuffix (new in Python 3.9, which looks to be the minimum supported by current pip). This micro-benchmarked to be a tiny bit faster than the preimage.

Copy link
Member

@notatallshaw notatallshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akx akx marked this pull request as ready for review December 12, 2025 15:08
@notatallshaw notatallshaw added this to the 26.0 milestone Dec 16, 2025
@ichard26
Copy link
Member

My only concern with this is that these scripts may be unexpectedly used by Python 3.8, but I think that's sufficiently unlikely as to be not a meaningful concern. Virtual environments can sometimes have their base interpreter be updated, but I'd imagine it's pretty much always as an upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants