diff --git a/peps/pep-0007.rst b/peps/pep-0007.rst index fc86f045067..302d4763226 100644 --- a/peps/pep-0007.rst +++ b/peps/pep-0007.rst @@ -50,6 +50,11 @@ C dialect declarations must be at the top of a block (not necessarily at the top of function). +* The Python C API must be able to be built with the + ``-Werror=declaration-after-statement`` compiler flag. + This implies that in static inline functions in public headers, + variables must be declared at the top. + * Don't use compiler-specific extensions, such as those of GCC or MSVC (e.g. don't write multi-line strings without trailing backslashes).