python / cpython

The Python programming language
https://www.python.org/
Other
60.87k stars 29.39k forks source link

3.13 adds C macros/functions/types without the `Py`/`_Py` prefix #118771

Open encukou opened 1 month ago

encukou commented 1 month ago

3.13 newly defines the following unprefixed functions/macros/types via Python.h. They should probably be hidden:

Some more are generated by configure:

Linked PRs

vstinner commented 1 month ago

Can't we move most of Include/cpython/optimizer.h contents to the internal C API? Is there a reason to expose it? I mean, the private functions (named prefixed by _Py).