Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify multiple calls to str.startswith / str.endswith #1760

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

QuLogic
Copy link
Contributor

@QuLogic QuLogic commented Aug 26, 2024

These methods have supported tuples to mean "any of the prefixes / suffixes" since Python 2.5, which can greatly simplify a bunch of or'd conditions.

These methods have supported tuples to mean "any of the prefixes /
suffixes" since Python 2.5, which can greatly simplify a bunch of `or`'d
conditions.
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.

2 participants