-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-43244: Remove symtable.h header file #24910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1358,3 +1358,19 @@ Removed | |
AST object (``mod_ty`` type) with the public C API. The function was already | ||
excluded from the limited C API (:pep:`384`). | ||
(Contributed by Victor Stinner in :issue:`43244`.) | ||
|
||
* Remove the ``symtable.h`` header file and the undocumented functions: | ||
|
||
* ``PyST_GetScope()`` | ||
* ``PySymtable_Build()`` | ||
* ``PySymtable_BuildObject()`` | ||
* ``PySymtable_Free()`` | ||
* ``Py_SymtableString()`` | ||
* ``Py_SymtableStringObject()`` | ||
|
||
The ``Py_SymtableString()`` function was part the stable ABI by mistake but | ||
it could not be used, because the ``symtable.h`` header file was excluded | ||
from the limited C API. | ||
|
||
The Python :mod:`symtable` module remains available and is unchanged. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would remove this, we are in the C-API changes section already. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's to say that the function remains available, it's just that the low-level C API is no longer available. It's possible to use the symtable module in C. |
||
(Contributed by Victor Stinner in :issue:`43244`.) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Remove the ``symtable.h`` header file and the undocumented functions: | ||
|
||
* ``PyST_GetScope()`` | ||
* ``PySymtable_Build()`` | ||
* ``PySymtable_BuildObject()`` | ||
* ``PySymtable_Free()`` | ||
* ``Py_SymtableString()`` | ||
* ``Py_SymtableStringObject()`` | ||
|
||
The ``Py_SymtableString()`` function was part the stable ABI by mistake but it | ||
could not be used, because the ``symtable.h`` header file was excluded from the | ||
limited C API. | ||
|
||
The Python :mod:`symtable` module remains available and is unchanged. | ||
|
||
Patch by Victor Stinner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this should be here, as it was never documented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, I didn't document such changes, but there is always one project sleeping somewhere which relies on the modified/removed function, and then it's painful to understand why the project is broken. Even if a function is very well hidden and not documented, there is always a secret project relying on it :-)