Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 7: Public C API should be compatible with C99 #3862

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion peps/pep-0007.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ C dialect

* Python 3.11 and newer versions use C11 without `optional features
<https://en.wikipedia.org/wiki/C11_%28C_standard_revision%29#Optional_features>`_.
The public C API should be compatible with C++.

* The public C API should be compatible with C99 and with C++03.

The existing API does use a few C11 features which are
commonly available as compiler extensions to C99.
New API should not use these features.

* Python 3.6 to 3.10 use C89 with several select C99 features:

Expand Down