gh-121617: Include <string.h> for Py_CLEAR() macro (#144666)
Python.h now also includes <string.h> in the limited C API version 3.11 and newer to fix the Py_CLEAR() macro which uses memcpy(). Add a Py_CLEAR() test in test_cext. Modify also _Py_TYPEOF to use C23 typeof() if available.
V
Victor Stinner committed
9e5e1f9988faee0a18969d4d7dda6a3e4eaf850b
Parent: eb6ebdb
Committed by GitHub <noreply@github.com>
on 2/12/2026, 4:03:55 PM