Skip to content

Document that public headers target C11 and C++11 #129666

Closed
@encukou

Description

@encukou

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

Devguide PR

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dirtestsTests in the Lib/test dirtopic-C-API

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions