Skip to content

gh-69456: Add method to detect if a string contains surrogates #135265

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

StanFromIreland
Copy link
Contributor

@StanFromIreland StanFromIreland commented Jun 8, 2025

Request @bitdancer (and maybe @ezio-melotti and @malemburg (looking at devguide))

contains_surrogates is misleading since it does not require more than one, and to me, singular suffers less, though it can be misleading too.

And, should this also be implemented for bytes?


📚 Documentation preview 📚: https://cpython-previews--135265.org.readthedocs.build/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant