gh-121617: Include <string.h> for Py_CLEAR() macro by vstinner · Pull Request #144666 · python/cpython
If the _Py_TYPEOF macro is not available, include <string.h> to get memcpy() for the Py_CLEAR() macro. The limited C API version 3.11 and newer doesn't include <string.h> anymore. Add a Py_CLEAR() test in test_cext. Modify also _Py_TYPEOF to use C23 typeof() if available.
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request
brijkapadia pushed a commit to brijkapadia/cpython that referenced this pull request
ljfp pushed a commit to ljfp/cpython that referenced this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters