Skip to content

Const correctness #38

Description

@encukou

The C API almost never uses const, so it's usually simply unused in user code too.
Future/alternative implementations might need to modify refcounts (or similar) in arguments that are now const, and removing const from a signature is an API break.

Is it worth it to use const in new API?

See also: python/cpython#91768

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    theme: the C languageissues related to the way we use the C language

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions