Currently, the C API implements many constants as macros. Examples:
#define Py_False _PyObject_CAST(&_Py_FalseStruct)
#define Py_None (&_Py_NoneStruct)
I propose to export important constants as symbols in the stable ABI and the limited C API, but still implement them as macros in the non-limited C API.
Feature or enhancement
Currently, the C API implements many constants as macros. Examples:
I propose to export important constants as symbols in the stable ABI and the limited C API, but still implement them as macros in the non-limited C API.
Linked PRs