Skip to content

C standard #22

@encukou

Description

@encukou

Most of this is already in PEP-7. IMO we should move guidelines with user-visible effects out of the style guide.

This is not only about the external API, but the guideline PEP might be a good place for it.

Python requires C11 without optional features.
The public C API should be compatible with C++. (XXX Which C++?)

It is OK to use optional and compiler-specific features for optimizations and optional Python features.

We can update the C/C++ version or add an optional C feature can only be done with Steering Council approval. We recommend the SC check that:

  • all major compilers support the feature
  • it's done only before the first Beta of new feature release,

(Note: atomics are an optional C feature, and AFAIK will be needed for nogil)

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidelineTo be included in guidelines PEP

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions