Skip to content

[3.14] gh-158810: Fix Py_ARRAY_LENGTH() macro on C++ - #159317

Merged
vstinner merged 3 commits into
python:3.14from
vstinner:array_len14
Oct 13, 2026
Merged

vstinner merged 3 commits into
python:3.14from
vstinner:array_len14

Conversation

@vstinner

@vstinner vstinner commented Oct 13, 2026 •

Copy link
Copy Markdown
Member
…9315)

* pythongh-158810: Fix Py_ARRAY_LENGTH() macro on C++ (python#158812)

(cherry picked from commit b2bfbce)

* pythongh-158810: Use _Py_TYPEOF in Py_ARRAY_LENGTH() (python#158838)

Fix the compiler warning "extension used" when building test_cext
with clang.

* test_cext no longer overrides the CC environment variable if it's
  already defined.
* test_cext now also logs __STRICT_ANSI__ macro.

(cherry picked from commit 85c03d4)

* Add Py_SETREF/XSETREF tests to test_cext

(cherry picked from commit 152185f)
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @vstinner for commit a93f29c 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F159317%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 13, 2026
@vstinner

Copy link
Copy Markdown
Member Author

buildbot/AMD64 CentOS9 NoGIL PR

  /home/buildbot/buildarea/pull_request.itamaro-centos-aws.nogil/build/Include/Python.h:52:4: error: #error "The limited API is not currently supported in the free-threaded build"
     52 | #  error "The limited API is not currently supported in the free-threaded build"
        |    ^~~~~

Oh, the limited C API must not be tested with Free Threading on Python 3.14.

@vstinner
vstinner enabled auto-merge (squash) October 13, 2026 22:27
@vstinner
vstinner merged commit 931322b into python:3.14 Oct 13, 2026
49 checks passed
@vstinner
vstinner deleted the array_len14 branch October 13, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants