Title: [C API] Private functions used by mypyc · Issue #121489 · python/cpython · GitHub
Open Graph Title: [C API] Private functions used by mypyc · Issue #121489 · python/cpython
X Title: [C API] Private functions used by mypyc · Issue #121489 · python/cpython
Description: I've been working on adding support for 3.13 to mypyc. After updating the codebase, there are still some functions left we depend on which are now private after #106320. Would it make sense to export these again? That would make adopting...
Open Graph Description: I've been working on adding support for 3.13 to mypyc. After updating the codebase, there are still some functions left we depend on which are now private after #106320. Would it make sense to expo...
X Description: I've been working on adding support for 3.13 to mypyc. After updating the codebase, there are still some functions left we depend on which are now private after #106320. Would it make sense to ...
Opengraph URL: https://github.com/python/cpython/issues/121489
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[C API] Private functions used by mypyc","articleBody":"I've been working on adding support for `3.13` to mypyc. After updating the codebase, there are still some functions left we depend on which are now private after #106320. Would it make sense to export these again? That would make adopting `3.13` a bit easier. /CC @vstinner\r\n\r\n- `_PyBytes_Join` defined in `pycore_bytesobject.h`\r\n- `_PyObject_CallMethodIdObjArgs` defined in `pycore_call.h`\r\n- `_PyType_CalculateMetaclass` defined in `pycore_object.h`\r\n- `_PyUnicode_EQ` defined in `pycore_unicodeobject.h`\r\n- `_PyUnicode_FastCopyCharacters` defined in `pycore_unicodeobject.h` (this could be replaced with `PyUnicode_CopyCharacters` but it's used in a simplified copy of `_PyUnicode_JoinArray` which also uses `_PyUnicode_FastCopyCharacters`).\r\n\r\nOther functions include these two. However, as they are inlined, it isn't a problem to include them.\r\n- `_PyObject_CallMethodIdNoArgs` and `_PyObject_CallMethodIdOneArg` defined in `pycore_call.h`\r\n\r\n_It would be fine to keep all of them in `internal/pycore_*` and just add `PyAPI_FUNC`._\r\n\r\n/CC @hauntsaninja\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-122094\n* gh-122266\n* gh-122267\n* gh-122287\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/cdce8p","@type":"Person","name":"cdce8p"},"datePublished":"2024-07-08T12:20:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/121489/cpython/issues/121489"}
| 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:a65826a8-d9f9-e33a-8944-a8db4612af75 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E73C:21A7BB:1CFED8:25F632:696B62A7 |
| html-safe-nonce | a0206b16f47feb0d30d252673d8dd3829366336cb0e39a7253225163a9bdd478 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzNDOjIxQTdCQjoxQ0ZFRDg6MjVGNjMyOjY5NkI2MkE3IiwidmlzaXRvcl9pZCI6IjE1MzI0Njg5MTYxMTIxODU5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 78c0881686301854a491a56617e8d9ca7857ccc3506352e9f21f621cfece460c |
| hovercard-subject-tag | issue:2395486088 |
| 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/121489/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ebe5b2532dd87c328bfe3819f088c0d524e8a84b4198bf9da3a552776e8a8852/python/cpython/issues/121489 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ebe5b2532dd87c328bfe3819f088c0d524e8a84b4198bf9da3a552776e8a8852/python/cpython/issues/121489 |
| og:image:alt | I've been working on adding support for 3.13 to mypyc. After updating the codebase, there are still some functions left we depend on which are now private after #106320. Would it make sense to expo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cdce8p |
| 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