Skip to content
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
5 changes: 5 additions & 0 deletions peps/pep-0007.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down