This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients shihai1991, vstinner
Date 2021-03-25.13:56:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616680583.08.0.743737646765.issue43244@roundup.psfhosted.org>
In-reply-to
Content
In short, this issue is a follow-up of bpo-40939.

These C API removal are related to the final step of the PEP 617 "New PEG parser for CPython": removal of the PyParser C API.

* The PyParser C API produced "node*" objects, like PyParser_SimpleParseFile(FILE*) => node*. This C API was removed in Python 3.10: bpo-40939 "Remove the old parser".

* The AST C API takes "node*" as input: PyAST_FromNode(node*) => mod_ty. I removed these APIs.

* symtable takes "mod_ty" as input.

* ASDL and PyArena API were only useful for the removed AST C APIs.

I searched for removed functions in the top PyPI 4000 projects, there is a single project on 4000: typed_ast. This typed_ast project is special, it copies directly code from CPython. Even after the C API removed, typed_ast can continue to use the internal C API, it only has to define the Py_BUILD_CORE_MODULE macro.
History
Date User Action Args
2021-03-25 13:56:23vstinnersetrecipients: + vstinner, shihai1991
2021-03-25 13:56:23vstinnersetmessageid: <1616680583.08.0.743737646765.issue43244@roundup.psfhosted.org>
2021-03-25 13:56:23vstinnerlinkissue43244 messages
2021-03-25 13:56:22vstinnercreate