Title: Soft-deprecate outdated C API macros · Issue #146175 · python/cpython · GitHub
Open Graph Title: Soft-deprecate outdated C API macros · Issue #146175 · python/cpython
X Title: Soft-deprecate outdated C API macros · Issue #146175 · python/cpython
Description: As discussed on C API WG, formally soft-deprecate outdated macros: Py_LL & Py_ULL: Use LL/ULL suffixes. Py_MEMCPY (already soft-deprecated) Py_VA_COPY: Use va_copy directly. PY_LONG_LONG, PY_LLONG_MIN, PY_LLONG_MAX, PY_ULLONG_MAX, PY_INT...
Open Graph Description: As discussed on C API WG, formally soft-deprecate outdated macros: Py_LL & Py_ULL: Use LL/ULL suffixes. Py_MEMCPY (already soft-deprecated) Py_VA_COPY: Use va_copy directly. PY_LONG_LONG, PY_LLONG_...
X Description: As discussed on C API WG, formally soft-deprecate outdated macros: Py_LL & Py_ULL: Use LL/ULL suffixes. Py_MEMCPY (already soft-deprecated) Py_VA_COPY: Use va_copy directly. PY_LONG_LONG, PY_LL...
Opengraph URL: https://github.com/python/cpython/issues/146175
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Soft-deprecate outdated C API macros","articleBody":"As [discussed on C API WG](https://github.com/capi-workgroup/decisions/issues/99), formally soft-deprecate outdated macros:\n- `Py_LL` \u0026 `Py_ULL`: Use `LL`/`ULL` suffixes.\n- `Py_MEMCPY` (already soft-deprecated)\n- `Py_VA_COPY`: Use `va_copy` directly.\n- `PY_LONG_LONG`, `PY_LLONG_MIN`, `PY_LLONG_MAX`, `PY_ULLONG_MAX`, `PY_INT32_T`, `PY_UINT32_T`, `PY_INT64_T`, `PY_UINT64_T`, `PY_SIZE_MAX`: Use C99 types/limits\n- `Py_UNICODE_SIZE`: Use `sizeof(wchar_t)` directly\n- `PY_FORMAT_SIZE_T`: Use `\"z\"` directly\n- `Py_ALIGNED`: Use `_Alignas` (C11) or `alignas` (C++ \u0026 C23) instead.\n\nPlus `Py_UNICODE_WIDE`: soft-deprecate this instead of removing. (There's been no visible warning outside docs, and removing an `#ifdef` macro is indistinguishable from making it “false”.)\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-146178\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/encukou","@type":"Person","name":"encukou"},"datePublished":"2026-03-19T15:38:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/146175/cpython/issues/146175"}
| 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:43a67c32-d353-cc2f-1c39-b71d49529f4a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAF6:15393D:5F786E:83895D:6A507472 |
| html-safe-nonce | 2a1a1b800263c89288e7a930cd653b62d89bbfbfddfdbdb7d3be69a6ab6567b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUY2OjE1MzkzRDo1Rjc4NkU6ODM4OTVEOjZBNTA3NDcyIiwidmlzaXRvcl9pZCI6IjYyODM5OTA4NDE4MTcwNjg2NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d3457bbd56c075554b4b4bb9ce11e88a27bbf95c11b23161998d2cada6576b53 |
| hovercard-subject-tag | issue:4102528939 |
| 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/146175/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dcf199b22a81b203fac0a31119ff5a988a35ba37e1e045a3affc90f6613a364/python/cpython/issues/146175 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dcf199b22a81b203fac0a31119ff5a988a35ba37e1e045a3affc90f6613a364/python/cpython/issues/146175 |
| og:image:alt | As discussed on C API WG, formally soft-deprecate outdated macros: Py_LL & Py_ULL: Use LL/ULL suffixes. Py_MEMCPY (already soft-deprecated) Py_VA_COPY: Use va_copy directly. PY_LONG_LONG, PY_LLONG_... |
| 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 | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width