Skip to content

Declare constants as variables, instead of macros #37

Description

@vstinner

Macros are not usable by some users: see issue #18. Should we define a guideline to declare new constants are variables instead of macros? Would such change have an impact on performance?

Example: python/cpython#111389 proposes adding 5 constants to the C API, they are just constant numbers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidelineTo be included in guidelines PEP

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions