-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtestsTests in the Lib/test dirTests in the Lib/test dirtopic-C-API
Description
Our public documentation should say that you need C11 or C++11 to #include <Python.h>.
Internally, we need to be more lenient & careful (though we won’t promise upfront how much). It's not OK to just break C99 support or slightly out-of-spec compilers.
We should test as much as we can; the devguide should be updated with details.
API WG discussion/vote: capi-workgroup/decisions#30 (comment)
Discourse topic: https://discuss.python.org/t/python-3-14-headers-will-require-c11-and-c-11/79481
Linked PRs
- gh-129666: Add C11/C++11 to docs and
-pedantic-errorsto GCC/clang test_c[pp]ext tests #130686 - gh-129666: Revert "gh-129666: Add C11/C++11 to docs and
-pedantic-errorsto GCC/clang test_c[pp]ext tests (GH-130686)" #130688 - gh-129666: Add C11/C++11 to docs and -pedantic-errors to GCC/clang test_c[pp]ext tests #130692
Devguide PR
gpshead and erlend-aasland
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtestsTests in the Lib/test dirTests in the Lib/test dirtopic-C-API
Projects
Status
Todo