Title: gh-69456: Add method to detect if a string contains surrogates by StanFromIreland · Pull Request #135265 · python/cpython · GitHub
Open Graph Title: gh-69456: Add method to detect if a string contains surrogates by StanFromIreland · Pull Request #135265 · python/cpython
X Title: gh-69456: Add method to detect if a string contains surrogates by StanFromIreland · Pull Request #135265 · python/cpython
Description: 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? Issue: gh-69456 📚 Documentation preview 📚: https://cpython-previews--135265.org.readthedocs.build/
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/python/cpython/pull/135265
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:64f0e314-cf32-0dde-5802-dc51faa2d31a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CCCA:206F88:43CF754:5E3AE3B:6A54DF5F |
| html-safe-nonce | 867af1b1bc783f908950e27185e5dfcd70d813b3217c2e8d997dbeb8a7f84264 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0NBOjIwNkY4ODo0M0NGNzU0OjVFM0FFM0I6NkE1NERGNUYiLCJ2aXNpdG9yX2lkIjoiOTE1NTk5NTg1MTU3OTI1MjU3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c08a264418d1c31261ed053b6a74e4330ba202b74eb52a4c62fb8efcb974bcdd |
| hovercard-subject-tag | pull_request:2576693066 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/135265/files |
| twitter:image | https://avatars.githubusercontent.com/u/89152624?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/89152624?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 00f21e38abd06cd6752db5c227083570f72fdb6c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width