GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Soft-deprecate outdated C API macros · Issue #146175 · python/cpython

Soft-deprecate outdated C API macros #146175

New issue
Copy link
New issue
Copy link
Closed
Closed
Soft-deprecate outdated C API macros#146175
Copy link
Assignees
encukou
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-C-API

Description

@encukou
encukou
opened on Mar 19, 2026
Issue body actions

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_INT32_T, PY_UINT32_T, PY_INT64_T, PY_UINT64_T, PY_SIZE_MAX: Use C99 types/limits
  • Py_UNICODE_SIZE: Use sizeof(wchar_t) directly
  • PY_FORMAT_SIZE_T: Use "z" directly
  • Py_ALIGNED: Use _Alignas (C11) or alignas (C++ & C23) instead.

Plus 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”.)

Linked PRs

  • gh-146175: Soft-deprecate outdated macros; convert internal usage #146178

Activity

  1. encukou
    self-assigned this
    on Mar 19, 2026
  2. encukou
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    topic-C-API
    on Mar 19, 2026
  3. github-project-automation
    added this to docs issueson Mar 19, 2026
  4. github-project-automation
    moved this to Todo in docs issueson Mar 19, 2026
  5. vstinner
    changed the title [-]Soft-deprecate outdated macros[/-] [+]Soft-deprecate outdated C API macros[/+] on Mar 20, 2026
  6. encukou
    added a commit that references this issue on Mar 23, 2026

    gh-146175: Soft-deprecate outdated macros; convert internal usage (GH…

    91cd2e5
  7. encukou
    closed this as completedon Mar 23, 2026
  8. CuriousLearner
    added a commit that references this issue on Mar 23, 2026

    Merge branch 'main' of github.com:python/cpython into fix-pythongh-13…

    3e05fa3
  9. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-146175: Soft-deprecate outdated macros; convert internal usa…

    fb4d428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @encukou
    encukou

Labels

docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-C-API

Projects

  • docs issues
    Status
    Todo
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.