Title: Use `_Py` prefix for private C API added in 3.15 · Issue #149685 · python/cpython · GitHub
Open Graph Title: Use `_Py` prefix for private C API added in 3.15 · Issue #149685 · python/cpython
X Title: Use `_Py` prefix for private C API added in 3.15 · Issue #149685 · python/cpython
Description: Sometimes we add C API (mainly macros) that should be private, but we don't use the _Py prefix. Usually it's due to similar existing names not using the prefix. During the beta period, let's add _Py to the ones added in 3.15. My annual s...
Open Graph Description: Sometimes we add C API (mainly macros) that should be private, but we don't use the _Py prefix. Usually it's due to similar existing names not using the prefix. During the beta period, let's add _P...
X Description: Sometimes we add C API (mainly macros) that should be private, but we don't use the _Py prefix. Usually it's due to similar existing names not using the prefix. During the beta period, let&...
Opengraph URL: https://github.com/python/cpython/issues/149685
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use `_Py` prefix for private C API added in 3.15","articleBody":"Sometimes we add C API (mainly macros) that should be private, but we don't use the `_Py` prefix. Usually it's due to similar existing names not using the prefix.\nDuring the beta period, let's add `_Py` to the ones added in 3.15.\n\nMy annual scan noticed these:\n\nHeader guards:\n\n- [x] `Py_CPYTHON_SLICEOBJECT_H` in `Include/sliceobject.h`\n- [x] `Py_CPYTHON_STRUCTSEQ_H` in `Include/structseq.h`\n- [x] `Py_SENTINELOBJECT_H` in `Include/cpython/sentinelobject.h`\n\nConfigure macros we chose a name for:\n\n- [x] `HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR`\n- [x] `HAVE_LIBGCC_EH_FRAME_REGISTRATION`\n- [x] `HAVE_PR_SET_VMA_ANON_NAME`\n\nAnd for completeness, configure macros generated by autotools -- these are harder to change:\n\n- `HAVE_CLEARENV`\n- `HAVE_PPOLL`\n- `HAVE_STATX`\n- `HAVE_STRUCT_STATX_STX_ATOMIC_WRITE_UNIT_MAX_OPT`\n- `HAVE_STRUCT_STATX_STX_ATOMIC_WRITE_UNIT_MIN`\n- `HAVE_STRUCT_STATX_STX_DIO_MEM_ALIGN`\n- `HAVE_STRUCT_STATX_STX_DIO_READ_OFFSET_ALIGN`\n- `HAVE_STRUCT_STATX_STX_MNT_ID`\n- `HAVE_STRUCT_STATX_STX_SUBVOL`\n- `HAVE_LINUX_CAN_ISOTP_H`\n- `HAVE_DECL_PR_SET_VMA_ANON_NAME`\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-149686\n* gh-149790\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/encukou","@type":"Person","name":"encukou"},"datePublished":"2026-05-11T15:07:07Z","url":"https://github.com/python/cpython/issues/149685"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:66948f29-0bdf-62ee-538e-405de2534753 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 817E:213839:3E4F515:4F880A5:6B02091F |
| html-safe-nonce | 30f9ef8807764dd16fd80648dcf57ee4e69c0d759da6a72ea033a76cf0eee8d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTdFOjIxMzgzOTozRTRGNTE1OjRGODgwQTU6NkIwMjA5MUYiLCJ2aXNpdG9yX2lkIjoiNjEwMjY4Mjk2Nzg0MTMxMTAwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1f4c5832411c039978901c0a0a528d19960f332e1d65c44b5001a16e02515a58 |
| hovercard-subject-tag | issue:4421925616 |
| 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/149685/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c1e1ea8eb1861f0b8f14bed7ef8fc23c13c2aae6f1b5f89502a114d52db41d7a/python/cpython/issues/149685 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1e1ea8eb1861f0b8f14bed7ef8fc23c13c2aae6f1b5f89502a114d52db41d7a/python/cpython/issues/149685 |
| og:image:alt | Sometimes we add C API (mainly macros) that should be private, but we don't use the _Py prefix. Usually it's due to similar existing names not using the prefix. During the beta period, let's add _P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | encukou |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width