]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43244: Remove symtable.h header file (GH-24910)
authorVictor Stinner <vstinner@python.org>
Fri, 19 Mar 2021 11:41:49 +0000 (12:41 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Mar 2021 11:41:49 +0000 (12:41 +0100)
commit28ad12f8fe889a741661eb99daacebd9243cc1ba
tree0519e059d23700bc0d9fe9b1bd4601559e49dbb4
parent32eba61ea431c76f15a910c0a4eded7f5f8b9b34
bpo-43244: Remove symtable.h header file (GH-24910)

Rename Include/symtable.h to to Include/internal/pycore_symtable.h,
don't export symbols anymore (replace PyAPI_FUNC and PyAPI_DATA with
extern) and rename functions:

* PyST_GetScope() to _PyST_GetScope()
* PySymtable_BuildObject() to _PySymtable_Build()
* PySymtable_Free() to _PySymtable_Free()

Remove PySymtable_Build(), Py_SymtableString() and
Py_SymtableStringObject() functions.

The Py_SymtableString() function was part the stable ABI by mistake
but it could not be used, since the symtable.h header file was
excluded from the limited C API.

The Python symtable module remains available and is unchanged.
15 files changed:
Doc/data/stable_abi.dat
Doc/whatsnew/3.10.rst
Include/cpython/pythonrun.h
Include/internal/pycore_symtable.h [moved from Include/symtable.h with 88% similarity]
Include/pythonrun.h
Makefile.pre.in
Misc/NEWS.d/next/C API/2021-03-17-23-53-14.bpo-43244.kfPqA_.rst [new file with mode: 0644]
Modules/symtablemodule.c
PC/python3dll.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/compile.c
Python/pythonrun.c
Python/symtable.c
Tools/scripts/stable_abi.py