Title: [C API] Add PyUnicode_Equal() function · Issue #124502 · python/cpython · GitHub
Open Graph Title: [C API] Add PyUnicode_Equal() function · Issue #124502 · python/cpython
X Title: [C API] Add PyUnicode_Equal() function · Issue #124502 · python/cpython
Description: Python 3.13 moved the private _PyUnicode_EQ() function to internal C API. mypy and Pyodide are using it. I propose to add a public PyUnicode_Equal(a, b) function to the limited C API 3.14 to replace the private _PyUnicode_EQ() function: ...
Open Graph Description: Python 3.13 moved the private _PyUnicode_EQ() function to internal C API. mypy and Pyodide are using it. I propose to add a public PyUnicode_Equal(a, b) function to the limited C API 3.14 to replac...
X Description: Python 3.13 moved the private _PyUnicode_EQ() function to internal C API. mypy and Pyodide are using it. I propose to add a public PyUnicode_Equal(a, b) function to the limited C API 3.14 to replac...
Opengraph URL: https://github.com/python/cpython/issues/124502
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[C API] Add PyUnicode_Equal() function","articleBody":"Python 3.13 moved the private _PyUnicode_EQ() function to internal C API. [mypy](https://github.com/python/cpython/issues/121489) and [Pyodide](https://github.com/capi-workgroup/problems/issues/79) are using it.\r\n\r\nI propose to add a public PyUnicode_Equal(a, b) function to the limited C API 3.14 to replace the private _PyUnicode_EQ() function:\r\n\r\n* Return `1` if *a* is equal to *b*.\r\n* Return `0` if *a* is not equal to *b*.\r\n* Set a `TypeError` exception and return `-1` if *a* or *b* is not a Python `str` object.\r\n* The function always succeed if *a* and *b* are strings.\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-124504\r\n* gh-125070\n* gh-125105\n* gh-125114\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2024-09-25T09:27:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/124502/cpython/issues/124502"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b6c46636-76c7-b923-b595-167b2dc12b4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A05E:2F30AE:A00F3E:D37589:696B5409 |
| html-safe-nonce | cfab82bea9b88572174b165776083cf18a6a5c3f911b51f5f417cf9ba6133534 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDVFOjJGMzBBRTpBMDBGM0U6RDM3NTg5OjY5NkI1NDA5IiwidmlzaXRvcl9pZCI6IjE5MTE1ODA2MjU0MTU2NTY0NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 07cf65c27b7bc43e1284e89e9ac4f1611e055998ee51c2005952db9bc673b33e |
| hovercard-subject-tag | issue:2547461456 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/124502/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db48ee7747cfcce8eabe6fb112b12555f1aa78942f9d327d0938b99f5756e32b/python/cpython/issues/124502 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db48ee7747cfcce8eabe6fb112b12555f1aa78942f9d327d0938b99f5756e32b/python/cpython/issues/124502 |
| og:image:alt | Python 3.13 moved the private _PyUnicode_EQ() function to internal C API. mypy and Pyodide are using it. I propose to add a public PyUnicode_Equal(a, b) function to the limited C API 3.14 to replac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width