[issue23903] Generate PC/python3.def by scraping headers

Serhiy Storchaka report at bugs.python.org
Sat Dec 24 15:49:59 EST 2016


Serhiy Storchaka added the comment:

Here is a shell script that uses the C preprocessor and other Unix tools to generate PC/python3.def. It doesn't add PyAST_* and PyNode_* functions and doesn't remove PyArg_VaParse* functions. But it still removes some names that are no longer used in public interface, but should be kept in the stable ABI for compatibility. E.g. PyCFunction_New (now it is a macro expanded to PyCFunction_NewEx) or _PyTrash_deposit_object (invoked by the macros before 3.2.4). It seems to me that this is unavoidable, and the resulting file must be manually edited.

----------
dependencies: +Mark new limited C API
Added file: http://bugs.python.org/file46026/genpython3def.sh

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23903>
_______________________________________


More information about the Python-bugs-list mailing list