gh-152105: Remove PyUnstable_ExecutableKinds and related macros (GH-1… · python/cpython@fe3a123 · GitHub
Skip to content

Commit fe3a123

Browse files
authored
gh-152105: Remove PyUnstable_ExecutableKinds and related macros (GH-155244)
1 parent 297eb1b commit fe3a123

6 files changed

Lines changed: 22 additions & 54 deletions

File tree

Doc/c-api/frame.rst

Lines changed: 0 additions & 38 deletions

Doc/tools/removed-ids.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ using/configure.html: cmdoption-with-system-libmpdec
2323
library/symtable.html: symtable.Class.get_methods
2424
library/sys.html: sys._enablelegacywindowsfsencoding
2525
c-api/import.html: c.PyImport_LazyImportsMode.PyImport_LAZY_NONE
26+
c-api/frame.html: c.PyUnstable_EXECUTABLE_KINDS
27+
c-api/frame.html: c.PyUnstable_ExecutableKinds
28+
c-api/frame.html: c.PyUnstable_ExecutableKinds.PyUnstable_EXECUTABLE_KIND_BUILTIN_FUNCTION
29+
c-api/frame.html: c.PyUnstable_ExecutableKinds.PyUnstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR
30+
c-api/frame.html: c.PyUnstable_ExecutableKinds.PyUnstable_EXECUTABLE_KIND_PY_FUNCTION
31+
c-api/frame.html: c.PyUnstable_ExecutableKinds.PyUnstable_EXECUTABLE_KIND_SKIP
32+
2633

2734
## Old names for grammar tokens
2835
reference/expressions.html: grammar-token-python-grammar-comp_for

Doc/whatsnew/3.16.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,3 +872,12 @@ Deprecated C APIs
872872

873873
Removed C APIs
874874
--------------
875+
876+
* The :c:var:`!PyUnstable_ExecutableKinds` array, as well as the macros
877+
:c:macro:`!PyUnstable_EXECUTABLE_KIND_SKIP`,
878+
:c:macro:`!PyUnstable_EXECUTABLE_KIND_PY_FUNCTION`,
879+
:c:macro:`!PyUnstable_EXECUTABLE_KIND_BUILTIN_FUNCTION`,
880+
:c:macro:`!PyUnstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR` and
881+
:c:macro:`!PyUnstable_EXECUTABLE_KINDS`, were removed.
882+
883+
(Contributed by Peters Bierma and Viktorin in :gh:`152105`.)

Include/cpython/pyframe.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,3 @@ PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLasti(struct _PyInterpreterFrame
3535
/* Returns the currently executing line number, or -1 if there is no line number.
3636
* Does not raise an exception. */
3737
PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLine(struct _PyInterpreterFrame *frame);
38-
39-
#define PyUnstable_EXECUTABLE_KIND_SKIP 0
40-
#define PyUnstable_EXECUTABLE_KIND_PY_FUNCTION 1
41-
#define PyUnstable_EXECUTABLE_KIND_BUILTIN_FUNCTION 3
42-
#define PyUnstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR 4
43-
#define PyUnstable_EXECUTABLE_KINDS 5
44-
45-
PyAPI_DATA(const PyTypeObject *) const PyUnstable_ExecutableKinds[PyUnstable_EXECUTABLE_KINDS+1];
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Remove the :c:var:`!PyUnstable_ExecutableKinds` array, as well as the macros
2+
:c:macro:`!PyUnstable_EXECUTABLE_KIND_SKIP`,
3+
:c:macro:`!PyUnstable_EXECUTABLE_KIND_PY_FUNCTION`,
4+
:c:macro:`!PyUnstable_EXECUTABLE_KIND_BUILTIN_FUNCTION`,
5+
:c:macro:`!PyUnstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR` and
6+
:c:macro:`!PyUnstable_EXECUTABLE_KINDS`, from the C API.

Python/frame.c

Lines changed: 0 additions & 8 deletions

0 commit comments

Comments
 (0)