Skip to content

Commit e846b70

Browse files
authored
PEP 7: Python 3.11 uses C11 (#2309)
1 parent d795805 commit e846b70

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pep-0007.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@ particular rule:
3131
C dialect
3232
=========
3333

34-
* Python versions before 3.6 use ANSI/ISO standard C (the 1989 version
35-
of the standard). This means (amongst many other things) that all
36-
declarations must be at the top of a block (not necessarily at the
37-
top of function).
34+
* Python 3.11 and newer versions use C11 without `optional features
35+
<https://en.wikipedia.org/wiki/C11_%28C_standard_revision%29#Optional_features>`_.
36+
The public C API should be compatible with C++.
3837

39-
* Python versions greater than or equal to 3.6 use C89 with several
40-
select C99 features:
38+
* Python 3.6 to 3.10 use C89 with several select C99 features:
4139

4240
- Standard integer types in ``<stdint.h>`` and ``<inttypes.h>``. We
4341
require the fixed width integer types.
@@ -47,8 +45,10 @@ C dialect
4745
- booleans
4846
- C++-style line comments
4947

50-
Future C99 features may be added to this list in the future
51-
depending on compiler support (mostly significantly MSVC).
48+
* Python versions before 3.6 used ANSI/ISO standard C (the 1989 version
49+
of the standard). This meant (amongst many other things) that all
50+
declarations must be at the top of a block (not necessarily at the
51+
top of function).
5252

5353
* Don't use compiler-specific extensions, such as those of GCC or MSVC
5454
(e.g. don't write multi-line strings without trailing backslashes).

0 commit comments

Comments
 (0)