diff options
author | Victor Stinner <vstinner@python.org> | 2021-03-18 13:57:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 13:57:49 (GMT) |
commit | eec8e61992fb654d4cf58de4d727c18622b8303e (patch) | |
tree | cfd8c8904ff2d67c496eadc133e698963d6d7723 /Misc | |
parent | fc980e0be19776ee05dfc5380eb5d6a8092935cb (diff) | |
download | cpython-eec8e61992fb654d4cf58de4d727c18622b8303e.zip cpython-eec8e61992fb654d4cf58de4d727c18622b8303e.tar.gz cpython-eec8e61992fb654d4cf58de4d727c18622b8303e.tar.bz2 |
bpo-43244: Remove the PyAST_Validate() function (GH-24911)
Remove the PyAST_Validate() function. It is no longer possible to
build a AST object (mod_ty type) with the public C API. The function
was already excluded from the limited C API (PEP 384).
Rename PyAST_Validate() function to _PyAST_Validate(), move it to the
internal C API, and don't export it anymore (replace PyAPI_FUNC with
extern).
The function was added in bpo-12575 by
the commit 832bfe2ebd5ecfa92031cd40c8b41835ba90487f.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2021-03-17-23-20-07.bpo-43244.diyn2C.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-03-17-23-20-07.bpo-43244.diyn2C.rst b/Misc/NEWS.d/next/C API/2021-03-17-23-20-07.bpo-43244.diyn2C.rst new file mode 100644 index 0000000..6632ace --- /dev/null +++ b/Misc/NEWS.d/next/C API/2021-03-17-23-20-07.bpo-43244.diyn2C.rst @@ -0,0 +1,3 @@ +Remove the ``PyAST_Validate()`` function. It is no longer possible to build a +AST object (``mod_ty`` type) with the public C API. The function was already +excluded from the limited C API (:pep:`384`). Patch by Victor Stinner. |