diff options
author | Petr Viktorin <encukou@gmail.com> | 2025-05-02 18:30:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-02 18:30:40 +0200 |
commit | 987e45e6326c6174fb7a300f44b9d8e4e26370c9 (patch) | |
tree | 84419f99bf1b183cbe5643344bd3e9dd05814211 /Lib/_pyrepl/utils.py | |
parent | d78768e3d69fec730760f6e59c91fd12f2a00d11 (diff) | |
download | cpython-987e45e6326c6174fb7a300f44b9d8e4e26370c9.tar.gz cpython-987e45e6326c6174fb7a300f44b9d8e4e26370c9.zip |
gh-128972: Add `_Py_ALIGN_AS` and revert `PyASCIIObject` memory layout. (GH-133085)
Add `_Py_ALIGN_AS` as per C API WG vote: https://github.com/capi-workgroup/decisions/issues/61
This patch only adds it to free-threaded builds; the `#ifdef Py_GIL_DISABLED`
can be removed in the future.
Use this to revert `PyASCIIObject` memory layout for non-free-threaded builds.
The long-term plan is to deprecate the entire struct; until that happens
it's better to keep it unchanged, as courtesy to people that rely on it despite
it not being stable ABI.
Diffstat (limited to 'Lib/_pyrepl/utils.py')
0 files changed, 0 insertions, 0 deletions